Skip to content
HQ8T

Code Beautifier

Format JS, TS, HTML, CSS, JSON, YAML with Prettier.

Formatted

Formatted with Prettier, entirely in your browser.

How to use

  1. 1Choose the language.
  2. 2Paste your code.
  3. 3Pick indent, line width and (for JS/TS) semicolons and quotes.
  4. 4Tap Beautify code and copy the result.

Frequently asked questions

What does it use?

Prettier, the most widely used code formatter, running entirely in your browser.

Why do I get a syntax error?

Prettier needs valid code. The error shows the line and column; fix it or check you picked the right language.

Can it format JSX and TSX?

Yes. Choose JavaScript / JSX or TypeScript / TSX.

Can it minify code?

Use our CSS & JS Minifier for that; this tool makes code readable.

Is my data uploaded?

No. Everything runs in your browser; nothing you paste is sent to a server.