Minify HTML by removing comments and extra whitespace.
Minified HTML will appear here.
Reduces HTML size by stripping comments and collapsing whitespace. Useful for production markup. For full minification (attributes, optional tags), use a build tool.
1. Paste HTML in the input box.
2. Click Minify and copy the result if needed.