Q2H Tools

HTML Minifier

Shrink HTML by removing comments and whitespace.

Free · no sign-upPrivate — runs in your browser

Do this next

About the HTML Minifier

Removes comments and extra whitespace and minifies inline CSS while keeping <pre>, <textarea> and scripts intact. Shows how many bytes you saved.

This tool runs entirely in your browser. Nothing you type is uploaded.

Format, validate and convert JSON, YAML, XML, SQL, HTML, CSS, JavaScript and Markdown instantly in your browser. See all 21 formatters tools →