HTML, CSS and JavaScript Formatter
Beautify HTML, CSS or JavaScript source locally with syntax-aware indentation.
Runs in your browser.
Tool settings
Result
How to use this tool
Select the language and paste the source. JavaScript is treated as text during formatting.
Example input
<main><h1>Example</h1><p>Hello</p></main>