Paste HTML above to see the formatted result.
Help
About this tool
Pretty-print HTML with Prettier, including inline <script>, <style> and <template> blocks. Tune indentation, line width, one-attribute-per-line and bracket placement, then copy the readable result. All processing happens locally in your browser.
How to use
- Paste your HTML into the input box.
- Adjust indentation, line width, whether attributes go one per line, and bracket placement.
- Copy the formatted result; parsing errors are shown inline without clearing your input.
Is my HTML uploaded anywhere?
No. Formatting runs entirely in your browser with Prettier, so your markup never leaves your device.
Does it also minify HTML?
No. This tool only beautifies markup into a readable layout; it does not compress or minify, because naive HTML minification can break <pre>, <textarea> and <script> content.
Will it format inline CSS and JavaScript?
Yes. Inline <style>, <script> and <template> blocks are formatted along with the surrounding markup.