HTML Minifier
Developer ToolsCompress HTML and see bytes saved
Embed this tool on your websiteFree
- Choose how tall the frame should be.
- Press Copy code.
- Paste it into your page, blog, WordPress or Notion HTML block.
The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.
Similar tools you may like
History
All history →HTML Minifier — at a glance
Trim the fat from your HTML so pages load faster.
How to use it — step by step
HTML code.
Paste your input
Paste or type your content into the big input box.
Choose options
Pick the mode and options that fit what you need.
Minify HTML
Press the button. The result is created instantly on your device.
Copy the result
Check the output and press Copy to use it anywhere.
Pro tips
Small things that make the result better.
Quick facts
Frequently Asked Questions
What is HTML Minifier?+
Minify HTML online: remove comments and extra whitespace between tags to reduce page size. Keeps <pre>, <textarea> and script content safe.
How do I use HTML Minifier?+
Open HTML Minifier on this page, then: 1. Paste your input 2. Choose options 3. Minify HTML 4. Copy the result. Everything runs in your browser on a phone or computer.
Is HTML Minifier free to use?+
Yes. HTML Minifier on Toolcloak is free, needs no signup and has no hidden limits.
Does it break layouts?+
Rarely. Whitespace between inline elements can matter, so preview the result.
Are IE conditional comments kept?+
Yes, comments starting with [if are preserved.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Also searched as: html minifier · minify html · html compressor · compress html online · html minifier app online · best html minifier

