HTML Formatter

Format HTML with Prettier — configurable print width and indent.

Runs entirely in your browser

FAQ

What powers the formatter?
Prettier — the same tool most VS Code users have on save. The browser build is dynamic-imported so it only loads when you open this page.
Does it touch my markup?
Only whitespace changes. Attribute order and content are preserved.

Related tools