Beautify minified or messy code
Paste code from a minified bundle, a Stack Overflow answer or an old project and get a consistent style: proper indentation, line breaks at your chosen width, normalised quotes and semicolons, and tidy object and array literals. Choose TypeScript to format type annotations, interfaces and generics (the TypeScript parser is loaded only when you select it). Formatting a minified file makes it readable, but variable names shortened by a minifier canโt be restored.
Formatting uses Prettier, the most popular code formatter, loaded into your browser โ the same output you would get from the Prettier extension in VS Code with these settings.
Option guide
- Semicolons โ off uses ASI-safe style without semicolons, as in StandardJS.
- Single quotes โ common in JS projects; JSON-like double quotes otherwise.
- Trailing commas โ โallโ produces cleaner git diffs when you add items.
- Line width โ where long lines are wrapped; 80 is Prettierโs default.
Everything runs in your browser โ your code and data are never uploaded, so it is safe to paste private config files and API responses.
Frequently asked questions
Can it de-obfuscate code?
It restores formatting only; obfuscated or mangled names stay as they are.
Does it support JSX and TSX?
Yes โ JSX works in JavaScript mode, TSX in TypeScript mode.
Why do I get a syntax error?
The code must be valid to format; the message shows the line and column of the problem.
Last updated 2026-11-21 ยท Built by Vinayak Agarwal ยท Part of Developer & Web (77 tools)