Web & Accessibility

HTML Minifier

Strip comments and needless whitespace from HTML, with inline CSS and JS tidied too.

Saving

Original0 B
Minified0 B
Reduction—
Gzipped—

Smaller HTML, same output

Minifying strips the bytes a browser doesn't need — comments and the whitespace and indentation between tags — so a page downloads and parses faster. This is a conservative minifier: it collapses runs of whitespace to a single space (keeping one space between inline elements so layout doesn't shift), removes HTML comments, and lightly minifies the CSS inside <style> blocks.

What it deliberately leaves alone

The contents of <pre>, <textarea> and <script> are preserved verbatim — whitespace is significant there, and rewriting JavaScript by regex is unsafe — and IE conditional comments (<!--[if …]>) are kept. For a build pipeline, a dedicated minifier plus Brotli/gzip on the server will squeeze more; this is for quick one-off trims and seeing the saving. Check the compressed size with the gzip size calculator — gzip already removes most whitespace redundancy, so the minified gain is largest before compression. Everything runs in your browser.

These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.