HTML minifier

Collapse comments and whitespace in HTML while preserving pre, textarea, script and style blocks.

Free foreverRuns in your browser100% local

Quick answer

HTML minifier — Collapse comments and whitespace in HTML while preserving pre, textarea, script and style blocks. This tool runs entirely in your browser. Your tool inputs never reach our servers. No hard limits — your browser memory is the practical ceiling. Everything still runs locally in your browser.

Frequently asked questions

Is this tool really free?

Yes. HTML minifier is free to use, with no account, no usage limits and no hidden fees.

Is my data uploaded anywhere?

No. HTML minifier runs entirely in your browser — text and files stay on your device.

Does it work offline?

Once the page has loaded, yes. The tool keeps working without a connection and sends nothing to a server.

What are the limits of HTML minifier?

No hard limits — your browser memory is the practical ceiling. Everything still runs locally in your browser.