All tools

HTML Minify

Compress HTML documents for faster loading

Privacy: Your code is processed locally in your browser. Nothing is sent to a server.

About HTML Minifier

Every byte of unnecessary whitespace and comments in your HTML slows down the first thing visitors load. This free minifier compresses your markup to the smallest working size without changing how the page renders, trimming load time. It runs entirely in your browser, so your code is never uploaded.

How to use HTML Minifier

  1. 1

    Paste HTML

    Paste your HTML markup in the input area.

  2. 2

    Minify markup

    Click minify to remove whitespace, comments, and optional tags.

  3. 3

    Copy minified HTML

    Copy the minified HTML to clipboard or download it.