Code beautify

Processed in this browser

Text limit: 2000000 characters

This tool never uploads your input.

A minified snippet from DevTools that you need to read. Project formatters still own the real style. JSON/SQL/XML have dedicated pages.

A one-line bookmarklet or a copied innerHTML script. You want newlines and indent, not a build. This page is a generic beautifier. It will not read .prettierrc.

Structured jobs: JSON formatter, SQL, XML. Markdown render is preview. Diff two versions after format: text diff.

DevTools dumps, not CI

A one-line bookmarklet or a minified snippet from DevTools is the job. Your repo’s Prettier plugins and print width will not match. JSON, SQL, and XML have dedicated parsers with better errors. We do not run the code.

How to use it

  1. Paste the snippet. Pick a language if the form asks.
  2. Beautify in the tab. If it fails, the source may already be invalid.
  3. Copy back to the editor. Run your real formatter before commit.

Honest limits

Not a security scanner. Not a compiler. Not “fix my syntax.”

FAQ

Will this match Prettier in CI?

Almost certainly not. CI uses your plugins and printWidth. This is a generic indent.

Can it execute or compile?

No. Format only. Do not paste secrets and then ‘run’ them here — there is nothing to run.

JSON / SQL / XML?

Prefer those dedicated formatters so errors are language-specific.

Huge bundles?

Memory-limited. A 5 MB webpack dump may freeze the tab. Beautify a slice.

Is the source uploaded?

No.

Related tools