JavaScript Beautifier
Format and pretty-print minified or messy JavaScript and JSON with proper indentation. 100% in your browser, no upload.
🔒 Runs in your browser — nothing is uploaded.
Make minified JavaScript readable again
Paste minified, obfuscated or badly-formatted JavaScript (or JSON) and get it back cleanly indented with consistent spacing and line breaks, so you can actually read and debug it. Choose 2 spaces, 4 spaces or tabs to match your project’s style. It’s powered by js-beautify, the same formatting engine used by many editors.
Everything runs in your browser — your code is never uploaded, which makes it safe for proprietary or unreleased scripts. It reformats layout only and never changes what your code does. This complements the site’s JSON formatter and HTML formatter.
Frequently asked questions
Can it un-minify JavaScript?
Yes — it re-indents minified code so it’s readable, though it can’t restore original variable names that a minifier shortened.
Does it work on JSON too?
Yes. JSON is valid JavaScript syntax, so pasting a minified JSON blob formats it with proper indentation.
Does it change my code’s behavior?
No. It only reformats whitespace and indentation; the logic is untouched.
Is my code uploaded?
No. Formatting happens entirely in your browser, so proprietary scripts never leave your device.