JavaScript Formatter

Beautify JavaScript and JSON code for easier reading.

Your data is processed in your browser and is not uploaded to our servers.

About the JavaScript Formatter

JavaScript Formatter re-indents minified or messy JavaScript, making it easier to read, debug and review. It is powered by the widely used js-beautify library and runs entirely in your browser.

How to use the JavaScript Formatter

  1. Paste the JavaScript code.
  2. Choose the indent size.
  3. Click "Beautify" and copy the formatted code.

Frequently asked questions

Can it deobfuscate code?

It improves formatting but cannot restore original variable names from minified code.

Does it run my code?

No. The code is only reformatted, never executed.