HTML Minifier / Formatter

Scan to open this page

Minify or format HTML live, with an instant byte-size reduction percentage — content inside pre, textarea, script, and style tags is always preserved byte-for-byte.

How it works

  1. Paste your HTML
  2. Pick Minify (compress for production) or Format (re-indent for readability)
  3. The result updates live below — no button, with a size-reduction percentage shown in Minify mode

Frequently asked questions

Does it touch the content inside <pre> or <script> tags?

No — that content is preserved exactly as written. Minifiers that don't do this can break rendering or behavior, which is a documented bug in this category of tool.

How is the size reduction calculated?

It compares the byte length of your original input to the minified output and shows the percentage saved.

Does this update live?

Yes, no button to click.

#HtmlMinifier#HtmlMinifierPreservesPreTextareaWhitespace#HtmlMinifierLiveNoButton#HtmlMinifierSizeReductionPercentage

Related tools

From the blog

Update history

  • 2026-08-30 Added: a cover image — used as the card thumbnail, social share image, and blog title image.
  • 2026-08-29 Launched: live HTML minify/format (no button), byte-size reduction percentage, pre/textarea/script/style content preserved byte-for-byte.