How it works
Uses Prettier's HTML parser to arrange markup with indentation and line breaks. The input is not inserted into a page or executed.
Format and indent HTML in your browser without executing it.
<div><p>Hello</p></div>
<div><p>Hello</p></div>
Uses Prettier's HTML parser to arrange markup with indentation and line breaks. The input is not inserted into a page or executed.
To inspect nested elements, paste compact HTML and run the formatter to view a multiline version.
The print width is 100 columns. Formatting is not validation or a security scan. For parse errors, check paired tags, attribute quotes, and missing input.
No. The tool formats source text without rendering or running it.
The input area shows the accepted format and available controls for this tool.
No. Your input is handled in the browser you are using. Privacy