JavaScript Beautifier
Paste minified or messy JavaScript to get clean, indented, readable code.
How to use the JavaScript Beautifier
- 1 Paste your JavaScript.
- 2 It is re-indented and formatted instantly.
- 3 Copy the clean code.
About the JavaScript Beautifier
Minified JavaScript is nearly impossible to read. This beautifier restores indentation, spacing and line breaks so you can understand or debug the code.
It uses the js-beautify library in your browser — your code is never uploaded.
Frequently asked questions
Does it run or check my code?
No, it only reformats the text; it does not execute or lint it.
Can it recover original variable names?
No tool can recover original names, but layout and structure are restored.