Add to Chrome Add to Edge

JS Formatter

Restore line breaks and indentation to minified JavaScript so you can read it.


JS Formatter

Minified JavaScript is impossible to read. The formatter restores line breaks and indentation so you can follow the logic and make edits.

How to use JS Formatter

  1. Paste your script into Enter your JS Code Here.
  2. Click Format Code.
  3. Copy the formatted code.

When it comes in handy

  • Reading third-party or minified scripts while debugging.
  • Tidying snippets before adding them to a project.
  • Preparing code for review or documentation.

Frequently asked questions

Can it recover the original variable names?
No. If a script was minified, short names such as a and b stay as they are. Only the layout is restored.
Is my code sent anywhere?
The formatting happens in your browser with a JavaScript library.

Related guides

Choose which cookies SEOpeck may use. You can change this at any time from "Cookie settings" at the bottom of every page.

Your tools

    Saved in this browser only. Nothing is sent to us.

    Popular tools