HTML Minifier

Developer Tools

Compress HTML and see bytes saved

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB

Similar tools you may like

History

All history →

HTML Minifier — at a glance

Trim the fat from your HTML so pages load faster.

HTML
<ul>
<li>Home</li>
</ul>
Minify HTML
Minified
<ul><li>Home</li></ul>

How to use it — step by step

HTML code.

1

Paste your input

Paste or type your content into the big input box.

2

Choose options

Pick the mode and options that fit what you need.

3

Minify HTML

Press the button. The result is created instantly on your device.

4

Copy the result

Check the output and press Copy to use it anywhere.

Pro tips

Small things that make the result better.

✦Text between inline tags may lose one space — check the page after.
✦Inline scripts and styles are left untouched.
✦Use together with server compression.

Quick facts

Freeno signup, no limit
Instantresult in a moment
Privatenothing is uploaded
Any devicephone, tablet or PC

Frequently Asked Questions

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.

More Free Tools