What is the JavaScript Beautifier?
Minified JavaScript is impossible to read. The beautifier restores line breaks and indentation so you can follow the logic, find a bug or understand what a script does.
Short variable names from minification stay short, since the original names are gone, but the structure becomes clear.
Features
Readable structure
Blocks, functions and objects laid out clearly.
Private
Code stays on your device.
How to use the JavaScript Beautifier
- 1
Paste your JavaScript.
- 2
Pick the indent.
- 3
Copy the clean code.
Who it is for
Debugging
Read a third-party script.
Security checks
See what an unknown script does before you add it.
Tips for better results
- If a site provides a source map, your browser's developer tools can show the original code instead.
Questions people ask
Can it bring back the original names?
No. Minification removes them for good.
Can it restore the original names?
No, names shortened by a minifier cannot be guessed back.