Beautify or minify JavaScript with custom indent, quote style, Terser compression, syntax highlighting, and one-click download — all private in your browser.
Also searched as: javascript formatter · javascript minifier · js beautifier online · minify javascript · uglify js online
Indent
Quote style
Step-by-step guide to get the most from this tool
Drop minified or messy JS into the input panel.
Select Beautify with indent options, or Minify with compression settings.
Read syntax-highlighted output with line numbers.
Copy to clipboard or download as a .js file.
What makes this tool stand out
Keywords, strings, numbers, and comments colored.
2 spaces, 4 spaces, or tabs.
Mangle, compress, and strip comments.
Clear error messages for invalid JS.
Save output as a .js file.
Client-side only — no server.
More free utilities you might find useful
Quick answers to common questions
Paste your code, choose Beautify mode, set indent and formatting options, and read the formatted output with syntax highlighting instantly.
Minify uses Terser in your browser to remove comments, optionally mangle variable names, and compress expressions for a smaller output file.
Invalid syntax shows a clear parse error message. Fix the error in your input and the output updates automatically.
Yes. Both js-beautify and Terser support modern JavaScript including async/await, classes, and modules syntax.
No. Beautify and minify run entirely in your browser with no network requests.
Yes. Use the Download button to save output as a .js file.
Yes.
Your data is processed entirely in your browser. Nothing is sent to any server.