HTML Minifier
Strip comments and whitespace from HTML.
How to use
- Paste your HTML.
- Click minify.
- Copy the compact result.
Frequently asked questions
Is it safe for <pre> content?
Whitespace collapsing can affect <pre> and inline formatting - review output where whitespace matters.