Skip to content
Jellykit

JavaScript Beautifier

Beautify minified JavaScript: one statement per line, indented blocks and spaced operators. Strings, regex and template literals stay intact. Free and private.

Runs in your browser. Nothing is uploaded.

About JavaScript Beautifier

JavaScript Beautifier breaks compressed code into one statement per line, indents every block and adds spaces after commas and around operators, so a minified snippet or a one-line bookmarklet becomes readable.

It works on tokens, not a full parse tree, which keeps it small and fast. Strings, regular expressions, comments and template literals are copied unchanged. For whole projects, a dedicated formatter such as Prettier will give more polished output.

How to use JavaScript Beautifier

  1. Type or paste your text into the input box. Press Sample to see an example.
  2. Adjust the options. The result updates as you type.
  3. Copy the result, or press Use as input to chain another transformation.

Frequently asked questions

Does it rename variables back?

No tool can recover original names from minified code. It restores layout only.

Can it break my code?

It only changes whitespace between tokens, so behaviour stays the same.

Is JavaScript Beautifier free and private?

Yes. JavaScript Beautifier is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all developer tools →