HTML Minifier
Remove comments and collapse safe whitespace.
Loading tool…
About this tool
Removes comments and collapses whitespace, conservatively. Whitespace between inline elements is rendered, so runs are collapsed to a single space rather than removed, and pre, textarea, script and style are left untouched.
Limitations
- Conservative by default. Always test minified output before shipping it.
Questions
- Why is the saving smaller than other minifiers report?
- Because those remove whitespace that is actually rendered, which can run words together. Check the rendered output, not the byte count.
Privacy
This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.