Skip to content
QZTools

JavaScript formatter

Make a minified script or a messy snippet readable.

Everything runs in your browser. Nothing you type or paste is sent to a server.

How to use the javaScript formatter

  1. 1

    Paste your JavaScript.

  2. 2

    Choose the indentation and brace style.

  3. 3

    Copy or download the formatted code.

About this tool

Useful for reading minified scripts, reviewing snippets from forums or unifying a file's style.

The code never runs: it's only rearranged as text in your browser.

Frequently asked questions

Can it recover original variable names?

No. If the code was obfuscated or minified with short names, those names stay.

Does it work with TypeScript?

It handles most TypeScript, but it's designed for JavaScript.