Free JavaScript Beautifier Online
Beautify and unminify JavaScript code instantly — powered by js-beautify, running entirely in your browser.
How it works
Paste JavaScript
Paste minified, obfuscated, or poorly-formatted JavaScript.
Beautify
Click Beautify JS or press Ctrl+Enter. The code is indented and line-broken.
Copy or download
Copy the formatted code or download as a .js file.
Browser-only
js-beautify is bundled locally. Your code is never uploaded anywhere.
Common use cases
Unminifying bundle output
Unminify webpack/Rollup bundles to inspect the generated code before debugging or reverse engineering.
Debugging third-party scripts
Format analytics, ad, or tracking scripts before reading them to understand what they're doing.
Code review readability
Format auto-generated or minified JS files to make them readable in pull requests and diffs.
Learning from minified code
Beautify open-source minified libraries to study how they're written before the source map is available.
Frequently asked questions
Can this deobfuscate JavaScript?
No — js-beautify only reformats structure (indentation, line breaks). It cannot reverse variable renaming or string obfuscation used in intentionally obfuscated code.
Does it support TypeScript or JSX?
js-beautify works on the JavaScript-like syntax level. TypeScript type annotations and JSX may format acceptably but use a TypeScript-aware formatter for precise results.
What indentation style is used?
2-space indentation by default — the most common style in modern JavaScript projects.
Is my code uploaded anywhere?
No. js-beautify runs from /lib/js-beautify.min.js locally. No CDN calls. No uploads.