JavaScript Minifier
Minify JavaScript with terser: compress, shorten local names and keep licence comments, with exact syntax errors and size savings.
Open toolBeautify minified or messy JavaScript with configurable indentation and brace style, plus a syntax check that parses the code without running it.
Turns minified or badly indented JavaScript into readable code: one statement per line, consistent indentation with 2 spaces, 4 spaces or tabs, braces on the same line or their own line, and optional wrapping of long lines. Modern syntax such as arrow functions, template literals, classes, async/await, optional chaining and modules is supported.
Alongside the formatted result, the code is parsed (never executed) to check its syntax. If there is an error you see the line and column with the offending line highlighted. Formatting does not rename anything, so it won’t undo name shortening done by a minifier. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
JavaScript (ES2024), JSX, JSON
Processed in this browser
In-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste your JavaScript.
Choose indentation, brace style and line wrapping.
Check the syntax result, then copy or download the formatted code.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Choose indentation, brace style and line wrapping.
Check the syntax result, then copy or download the formatted code.
Minify JavaScript with terser: compress, shorten local names and keep licence comments, with exact syntax errors and size savings.
Open toolPretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open toolBeautify CSS with consistent indentation, one selector per line and blank lines between rules, after checking for unbalanced braces.
Open toolBeautify HTML with configurable indentation, line wrapping and attribute layout, without ever rendering or running it.
Open tool