JavaScript Formatter

Indent JS or JSON-looking scripts locally.

Loading tool

This tool runs in your browser. Nothing is uploaded.

Paste a minified snippet and get readable indentation. The formatter does not eval your code.

How to use this tool

  1. Paste the snippet. Drop JSON, code, or a token into the input. It is not sent to a server.
  2. Run the action. Format, decode, or generate. Parse errors stay on the page.
  3. Copy the output. Copy the result back into your editor or terminal.

Scope

Standard JS and JSX-looking tags may parse. TypeScript-only syntax can fail. This is not your project's Prettier config.

Frequently asked

Will it run the script?

No. There is no eval and no worker execution.

Can I format TypeScript?

Simple files often work. Decorators and some type syntax may error.

Does it apply ESLint rules?

No. Indent and wrapping only.

Is there a print width control?

Yes. Default is 80.

Is the source uploaded?

No.