JavaScript Beautifier
Beautify minified or messy JavaScript and JSON into readable, indented code.
Runs in your browser — your data never leaves your device.
About the JavaScript Beautifier
Minified JavaScript is impossible to read. Paste it here to restore line breaks and indentation so you can understand, debug or review the code.
How to use the JavaScript Beautifier
- Paste your JavaScript.
- Choose indentation and brace style.
- Copy or download the formatted code.
How it works
Formatting is done with js-beautify (MIT). It re-indents code and adds line breaks; it does not rename variables or restore comments removed by minification.
Examples
function add(a,b){if(a>b){return a-b}return a+b}→ a neatly indented function over 6 lines.
Frequently asked questions
Is my data sent to your server?
No. Everything runs in your browser, on your own device. Nothing you type, paste or choose is uploaded or stored.