h
HTML Minifier
Remove comments and extra whitespace from HTML.
167 B
Original
109 B
Output
34.7 %
Reduction
Runs entirely in your browser. Nothing is sent anywhere.
How it works
- 1Paste or type your text.
- 2Choose the options you need.
- 3Copy or download the result.
About this tool
HTML Minifier: Remove comments and extra whitespace from HTML. Paste your text and the result appears immediately, ready to copy or download. Everything happens locally in your browser — nothing you paste is uploaded or stored.
Example
Input
<!doctype html>
<html>
<head>
<!-- page title -->
<title>Demo</title>
</head>
<body>
<h1>Hello</h1>
<p>Some text here.</p>
</body>
</html>
Output
<!doctype html><html><head><title>Demo</title></head><body><h1>Hello</h1><p>Some text here.</p></body></html>
How do I use the HTML Minifier?
Paste or type your text. Choose the options you need. Copy or download the result.
Is the HTML Minifier free?
Yes. It is completely free with no sign-up, no usage limits and no watermark.
Is my data sent to a server?
No. Everything is calculated locally in your browser. Nothing you enter is uploaded, logged or stored.
Does it work on my phone?
Yes. It works in any modern browser on Android, iPhone, iPad, Windows, Mac and Linux — no app needed.