Loading…
Loading…
Shrink HTML the safe way — script, style and pre content stay verbatim while comments and dead whitespace disappear, with byte savings counted.
Loading tool…
A full document or a fragment both work. The <!doctype> declaration is preserved as-is.
Toggle comment removal and whitespace collapsing. When in doubt, run with both on and inspect the <pre> and script areas in the preview — they will be identical to the input.
Grab the minified markup for your template or save it as minified.html. The stats tiles quantify exactly what you gained.
Image, PDF, text, calculator and media utilities — all free, all private, all running right in your browser.
Browse the complete toolkitRemove comments
Strips <!-- --> notes; conditional comments are preserved.
Collapse whitespace
Text keeps single spaces; gaps between tags are removed; <pre>, <textarea>, <script> and <style> stay untouched.
runs in your browser — nothing is uploaded