JavaScript Beautifier
Your text is used only to create the result and is not saved.
What does JavaScript Beautifier do?
The JavaScript Beautifier reformats compressed or messy JavaScript with proper indentation and line breaks so you can read and understand it.
How to use JavaScript Beautifier
- Paste or type your code into the box. The Paste button inserts what you copied, and Sample loads an example.
- Press Beautify.
- Check the result and press Copy to use it. Reset clears everything.
When is it useful?
- Read minified scripts
- Tidy code before a review
- Debug a one-line script
Good to know
- Beautifying does not change what the code does.
- Your text is only used to create the result and is not saved.
Frequently asked questions
Is JavaScript Beautifier free?
Yes. You can use it as often as you like without creating an account.
Is my code saved?
No. It is sent to our server only to create the result and is not stored. Like every tool on the site we keep a basic usage record (tool name, time, IP address and country); see our Privacy Policy.
Does it work on my phone?
Yes. It runs in any modern browser on a phone, tablet or computer - there is nothing to install.