Skip to content

HTML Formatter & Minifier

Pretty format or minify HTML. Choose indentation (2 or 4 spaces) and optionally remove comments. All processing runs in your browser.

Example

Paste minified HTML and click Format for readable indentation. Use Minify to remove extra whitespace and (optionally) comments for production.

FAQ

No. Formatting and minification run entirely in your browser.
It collapses whitespace and newlines. With "Remove comments" checked, HTML comments are stripped as well.

Markup Tools