Code Formatter
Format HTML, CSS, and JavaScript with consistent style, right in your browser.
Loading tool…
About this tool
Paste HTML, CSS, or JavaScript to reformat it with consistent indentation and style using Prettier, running entirely client-side.
How to use
- Paste your code and select its language.
- Click format to get consistently styled output.
- Copy the formatted code.
FAQ
What formatting engine is used?
Prettier's standalone browser build, so formatting matches what you'd get from Prettier locally or in CI.
Can I adjust indentation width or quote style?
Yes, basic options like indent size and quote style are configurable.