Minify HTML by removing comments and extra whitespace while keeping pre, script and style blocks safe.
What is the HTML Minifier?
Shrink your HTML by removing comments and unnecessary spaces between tags. Content inside <pre>, <textarea>, <script> and <style> is protected so nothing breaks.
How to use the HTML Minifier
- Paste your HTML.
- Choose what to remove.
- Copy the minified HTML.
Frequently asked questions
Does it remove IE conditional comments?
No. Comments starting with [if are kept.
This html minifier is 100% free, needs no signup and runs in your browser, so your data stays private.
Last updated: · By NodifyTech