Paste HTML
Paste your HTML into the box.
Shrink HTML safely: comments and whitespace out, content untouchedEvery space between your tags rides along to the visitor's browser, and across a whole page that formatting adds up. This minifier strips what humans need but browsers ignore: indentation, line breaks, comments and optional attribute quotes.
Shrink HTML safely: comments and whitespace out, content untouched
Options
Paste your HTML into the box.
Choose your options (comments, whitespace, empty attributes).
Click "Minify HTML", then copy or download the result.
This minifier takes the safe path: it protects pre, textarea, script and style blocks before touching anything, strips comments, collapses inter-tag whitespace, and optionally drops empty attributes.
The result renders exactly like the original while downloading faster, and every run reports before/after sizes and the percentage saved.
Where the bytes matter most.
Landing pages chasing performance scores save 10 to 20 percent of document size, feeding faster first contentful paint.
Email templates face strict size limits from some providers, and minifying is the easiest way to fit.
Hand-edited CMS themes accumulate formatting cruft over the years; minifying ships the clean compressed version.
Static sites generated from readable templates can ship the compressed version while the source stays clean.
One boundary keeps it safe.
Whitespace inside pre blocks and textarea elements is meaningful; a careful minifier preserves those regions exactly.
Test the page once after minifying, then keep the readable source as the file you actually edit.
Regenerate the compressed copy whenever the source changes so the two versions never drift apart.
Everything runs in your browser. Your markup never leaves your device, no signup needed.

Free security headers checker. Instantly scan HSTS, CSP, X-Frame-Options and more on any site, get an A to F grade and clear steps to fix every website gap.
Read article →
Free WHOIS lookup for any domain. Check the registrar, registration and expiry dates, name servers and the full WHOIS record instantly, no sign-up needed.
Read article →