Skip to content
Toolbento

HTML minifier

Shrink HTML by removing comments and the whitespace a browser does not need.

Everything stays on this device

HTML minifier runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Output

Missing a feature or found a bug in HTML minifier? Tell me on X (@_andrewtran) or by email.

How to use HTML minifier

  1. Paste your HTML in the input pane.
  2. Read the smaller result and the size saved.
  3. Copy it or download it as a file.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

Will my page look the same?

It should. A space between inline elements is kept because it shows, and pre, textarea, script and style are left as written.

Where are the other options?

This page opens HTML formatter with one choice already made. Every option of that tool is still here, and its own page says more about it.

Esc

Loading tools