JavaScript Formatter & Beautifier

Paste minified or compressed JavaScript and get a readable, indented version instantly.

How it works

The formatter tracks string literals so braces inside quotes do not affect indentation. Newlines are inserted after braces and semicolons, giving a predictable layout for quick inspection.

Frequently asked questions

Full AST parsing?

No — this is a lightweight tokenizer, good for readability, not a replacement for prettier on complex edge cases.

Comments kept?

Yes — line and block comments flow through with surrounding code.

Does it run my code?

Never — formatting is pure text transformation.