Initializing, please wait a moment
Paste or upload the input; minified output renders to the right.
Input: bytes
Output: bytes
HTML Minifier Online
Strip whitespace and comments from a HTML block to shrink it before you paste it into a page, an email template, or a build step.
What it does
- Strips whitespace and comments from a HTML block.
- Renders the minified output to the right as you paste or upload the input.
- Preserves the original line layout in the source pane so you can diff the before and after.
Privacy and processing
Minification runs locally in your browser; nothing is uploaded. The HTML you paste stays on your device from start to finish.
Going the other way
To expand an already-minified block back into readable, indented HTML, use the beautifier linked in the related-tools section below.
Loading reviews...
Frequently Asked Questions
What does HTML Minifier Online do?
Strip whitespace and comments from a html block.
When should I reach for html minifier online?
Original line layout is preserved in the source pane for diffing.
What complementary tools work well alongside html minifier online?
For unminification of an already-minified block, see the related-tools section.