Small tasks. A little easier.126 tools · No account required

Find your next tool

Search all 126 tools and their practical guides.

SEO & websites tools

HTML Minifier

Compact HTML while preserving script, style, and preformatted blocks.

Guide & tutorial
Your workspaceProcessed in your browser

Loading workspace…

How to use html minifier

  1. Paste HTML into Source code, keeping the readable original.
  2. Choose Minify code for input within 250,000 UTF-8 bytes.
  3. Compare the output and test it in the intended page before deployment.

Work through an example

Remove ordinary comments and repeated whitespace while preserving preformatted blocks and reviewing browser serialization.

Compact an HTML snippet while checking parser normalization →

Formats, privacy, and practical limits

This tool processes the values you enter in your browser. No account or upload to ERITHRA is required.

Files and generated results exist only for this tab session. Download any result you want to keep before leaving the page. Browsers may use temporary memory or disk cache while processing.

Frequently asked questions

Which element contents retain whitespace?

The whitespace pass preserves contents of script, style, pre, and textarea elements. It does not minify their embedded CSS or JavaScript.

Can the output change beyond comment removal?

Yes. The browser HTML parser normalizes the markup before serialization, so malformed structures and source formatting may change.

Keep things moving

All seo & websites tools