JavaScript Tools

Minify and beautify code, test regular expressions with live highlighting and a plain-English explanation, and decode JSON Web Tokens without sending them anywhere.

JavaScript Minifier

Minify and compress JavaScript with Terser: mangle names, drop dead code, optionally remove console calls.

JavaScript Beautifier

Reformat minified or messy JavaScript with consistent indentation and brace style.

Regex Tester & Explainer

Test JavaScript regular expressions with live highlights, groups and a plain-English explanation.

JWT Decoder

Decode a JSON Web Token locally: header, payload, expiry. Nothing is sent anywhere.

About these JavaScript tools

Every tool on this site runs 100% in your browser. The text, files and tokens you enter are processed on your own device and are never uploaded to a server, so it is safe to try them on real-world data. Each page explains what the tool does, walks through a worked example and answers common questions.

Minification and beautification use the open-source Terser and js-beautify libraries, loaded only on the page that needs them. The regular expression tester uses your browser's own JavaScript engine, so what matches here is exactly what will match in your code.