JavaScript Formatter
Beautify minified or messy JavaScript with your preferred indentation and brace style.
Loading tool…
How to use the JavaScript Formatter
- 1
Paste JavaScript or open a .js file.
- 2
Pick the indentation, brace style and line width.
- 3
Copy the formatted code or download it.
Frequently asked questions
Can it unminify code?
Yes. It restores line breaks and indentation. Original variable names that a minifier shortened cannot be recovered.
Is my code executed?
No. The code is only re-indented as text in your browser.