BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13% BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13%

HTML Minifier

Shrink HTML for faster pages: comments and extra whitespace go, while pre, textarea, script and style blocks stay untouched.

  • 100% Free
  • No sign-up
  • Runs in your browser

What is the HTML Minifier?

Every space, line break and comment in HTML is downloaded by every visitor. Minifying removes what browsers do not need, so pages are a little lighter.

Paste your HTML and get a compact version, with the size saved shown.

Features

Smaller HTML

Comments and extra whitespace removed.

Savings shown

See how much smaller it got.

How to use the HTML Minifier

  1. 1

    Paste your HTML.

  2. 2

    Press Minify.

  3. 3

    Copy the smaller code.

Who it is for

Static sites

Shrink hand-written pages before upload.

Email templates

Stay under size limits of email clients.

Tips for better results

  • Keep the readable original. Minified code is for publishing, not editing.
  • Server compression (gzip or Brotli) saves more than minifying. Use both.

Questions people ask

Is it safe for pre and textarea?

Spacing inside those tags matters, so check pages that use them after minifying.

Can it break my page?

It keeps the content of pre, textarea, script and style as it is, so pages look the same.

Trustpilot

What our customers say

4.8 / 5Trustpilot rating
FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status