Make minified JavaScript readable again. Paste compressed code and get clean indentation with sensible line breaks, while strings and comments stay intact.
The tool scans your code character by character, tracking strings, template literals and comments so their contents are never touched. Braces and brackets control indentation depth, semicolons and closing braces trigger line breaks, and redundant blank lines are collapsed. The result is readable code with the logic byte-for-byte identical.
This is a pragmatic beautifier for everyday code, not a full parser: exotic syntax like regex literals containing braces can occasionally indent oddly. Always diff the formatted output against the original and test before shipping. For bulletproof formatting of a large codebase, a tool like Prettier is the next step.