Code Beautifier
Make minified or badly indented code readable again.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Language
Indent
How to use Code Beautifier
- Paste your code.
- Choose the language and indent.
- Copy the beautified code.
Frequently asked questions
Can it un-minify JavaScript?
It restores line breaks and indentation, but variable names shortened by a minifier cannot be recovered.
Which formatter is used?
js-beautify, the same engine used by many code editors.
Related tools
All Developer Tools →- HTML / CSS / JS Minifier Shrink CSS, JavaScript and HTML by removing comments, whitespace and unnecessary characters.
- JSON Formatter Pretty-print messy JSON, find syntax errors fast, or minify it for production.
- SQL Formatter Make long, single-line SQL queries readable for code reviews, documentation and debugging.
- .env Formatter Check environment files for mistakes and convert them for Docker, Kubernetes or documentation.
- cURL Converter Paste a cURL command copied from browser DevTools or API docs and get ready-to-use code.
- JWT Decoder Inspect JSON Web Tokens from your app or API.