Make minified or badly indented code readable again. Paste JavaScript, JSON, CSS, HTML or SQL and get it neatly indented with one statement per line, using the proven js-beautify and sql-formatter libraries. The language is picked automatically, or you can choose it, with 2 spaces, 4 spaces or tabs.
loading toolHow to use the code beautifier
- Paste your code (or tap Try a sample).
- Choose the options; the result updates as you type.
- Copy the result or download it.
Good to know
- Use Auto unless the guess is wrong, for example for CSS that starts with an unusual selector.
- For HTML with <script> and <style> blocks, the code inside them is beautified too.
Questions
Does beautifying change what the code does?
No. Only spaces and line breaks change. Strings, comments and the order of the code stay exactly the same.
Can it un-minify a .min.js file?
It restores indentation and line breaks, which makes minified code readable. It cannot bring back the original variable names if a minifier shortened them.
Is my code uploaded?
No. The open-source library is downloaded once from a public CDN and then runs in your browser. Your code stays on your device.
Is my data private?
Yes. Everything happens inside your own browser: nothing you type or choose is uploaded to us or anyone else.
Is it free?
Completely free, with no sign-up, no watermark and no limit on how many times you use it. Light ads keep the site running.





























