Skip to content
Toolzen
  • Image CompressorImage tools
  • Image ResizerImage tools
  • Image ConverterImage tools
  • Favicon GeneratorImage tools
  • Merge PDFPDF tools
  • Split PDFPDF tools
  • Remove PDF PagesPDF tools
  • Images to PDFPDF tools

JavaScript Formatter

Beautify minified or messy JavaScript with your preferred indentation and brace style.

Loading tool…

How to use the JavaScript Formatter

  1. 1

    Paste JavaScript or open a .js file.

  2. 2

    Pick the indentation, brace style and line width.

  3. 3

    Copy the formatted code or download it.

Frequently asked questions

Can it unminify code?

Yes. It restores line breaks and indentation. Original variable names that a minifier shortened cannot be recovered.

Is my code executed?

No. The code is only re-indented as text in your browser.