Input
Paste HTML
Ready to process HTML.
Developer utility
Compress HTML while protecting whitespace-sensitive content, compare source and output sizes, inspect warnings, and preview both versions locally before deployment.
Input
Ready to process HTML.
Paste HTML to calculate output size and savings.
Output
Safety checks
Paste HTML to calculate output size and savings.
Isolated comparison
Both previews run without script permission. A restrictive preview-only CSP also blocks network requests without changing the generated output.
Examples
| Option | Default | Effect | Risk |
|---|---|---|---|
| Remove comments | On | Removes ordinary HTML comments while retaining selected special comments. | Low when conditional and license comments are preserved. |
| Simplify attributes | On | Removes redundant script/style MIME types and safely collapses boolean attributes. | Low for modern HTML; quoted attribute values are parsed without global regex replacement. |
| Minify inline CSS | On | Compresses style blocks and style attributes while retaining /*! license */ comments. | Review legacy CSS hacks and compare complex declarations. |
| Remove empty class/id | Off | Removes empty class and id attributes only. | May affect scripts that inspect attribute presence. |
| Remove all inter-tag whitespace | Off | Changes adjacent closing and opening tags to have no separating whitespace. | Can join inline content and change layout; visually test before use. |
No. Tokenization, compression, formatting, statistics, previews, copying, and downloads run locally in the browser.
Whitespace between inline elements can be visible. Keeping one space is safer than always joining adjacent closing and opening tags.
Pre, textarea, code, script, style, template, SVG, and MathML blocks keep their internal whitespace. Style blocks and style attributes are only compressed when that option is enabled.
It is useful for snippets, inspection, and one-off files. Production builds should use a tested project-level minifier and retain source files and version control.