HTML Prettify / Minify
Clean up minified HTML from templates, emails, or scraped pages. Prettify uses an industry-standard formatter for consistent indentation; minify strips extra whitespace between tags for a smaller payload.
HTML Prettify / Minify
How to Use This Tool
- Paste your HTML into the input panel.
- Click Prettify for readable, indented markup.
- Click Minify for a compact one-line style (whitespace between tags removed).
- Copy the result when you are done.
Features
- Prettify with consistent indentation
- Lossless structural minify (whitespace between tags)
- Runs entirely in the browser
- Dark mode UI
Frequently Asked Questions
Is my HTML sent to a server?
No. All processing happens in your browser.
Will minify change my content?
It removes comments and collapses whitespace between tags. Text inside elements is preserved as parsed by the browser pipeline for display logic.
Related Tools
CSS Prettify / Minify
Beautify or compact CSS locally.
JavaScript Prettify / Minify
Prettify JS with Prettier or minify with Terser.
JSON Prettify / Minify
Pretty-print or minify JSON instantly.
XML Prettify / Minify
Indent or compress XML with DOM validation.
JSON Escape / Unescape / Validate
Escape, unescape, or validate JSON without sending data anywhere.
JavaScript Validator
Validate JS/TS syntax with line-accurate errors.