How to use the HTML Minifier
- 1Paste your HTML.
- 2Read the minified output and size saving.
- 3Copy the result.
Supported formats and limits
- Removes HTML comments (except IE conditional comments) and whitespace between tags.
- Does not rename anything or touch inline scripts and styles.
- Content inside <pre> and <textarea> may be affected — check before shipping.
Common uses
- Shrinking a hand-written page.
- Cleaning exported HTML.
- Learning what minification does.
Frequently asked questions
Is this as good as a build tool?
No — it is a conservative rule-based minifier. Production sites should use a bundler, but this is handy for quick one-off files.
