Minify HTML by removing safe formatting bytes while preserving the DOM and text content.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
HTML is tokenized while comments and formatting whitespace are removed where they are not text; attributes are serialized safely and raw-text elements remain protected. Element order and document structure stay unchanged.
<div>
<!-- navigation -->
<nav>
<a href="/">Home</a>
</nav>
</div>
<div><nav><a href="/">Home</a></nav></div>
Production pages, static-site builds, and markup snapshots minify HTML.