Skip to content
Desirly

Developer tools

JavaScript Beautifier

Format and unminify JavaScript into readable code with proper indentation. Free online JS beautifier.

How to use the JavaScript Beautifier

  1. 1

    Paste your JavaScript.

  2. 2

    Pick the indentation.

  3. 3

    Click Beautify.

About this tool

Make minified or messy JavaScript readable again with consistent indentation and line breaks.

Frequently asked questions

Can it restore original variable names?

No. Minifiers rename variables permanently. Formatting only restores the layout.

Does it run my code?

No. The code is only reformatted as text.

Your cookie choices

We use essential cookies to run this site. With your permission we would also use Google Analytics to see which pages help people. Cookie notice

Settings