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
- Choose HTML, CSS or JavaScript.
- Paste the code.
- 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.
Related tools
- Available
JSON formatter & validator
Validate, pretty-print and minify JSON and find the exact error. Runs in your browser.
AvailableIn your browser - Available
SQL formatter
Make your SQL queries readable (PostgreSQL, MySQL, SQLite and more). Runs in your browser.
AvailableIn your browser - Available
Regex tester
Test JavaScript regular expressions with matches and capture groups. Time-limited for safety.
AvailableIn your browser - Available
Word counter
Count words, characters, sentences and paragraphs instantly.
AvailableIn your browser

