Skip to content

HTML, CSS & JavaScript formatter

Pretty-print HTML, CSS and JavaScript with Prettier. It only formats: it never runs the code or checks its security.

AvailableIn your browserInput: Text

How to use: HTML, CSS & JavaScript formatter

  1. Choose HTML, CSS or JavaScript.
  2. Paste the code.
  3. Format it with Prettier and copy or download it.

What it accepts and what you get

Input
Code up to 1 million characters.
Output
Consistently formatted code.
Where your data is processed
Your data is processed in your browser and is not sent to our servers.

Limitations and notes

  • The code is never run: it is only parsed and printed again.
  • Code with syntax errors shows the error instead of a result.