HTML/CSS Minifier

Minify HTML and CSS to reduce page load time

Input (157 chars)
Minified (108 chars)31.2%
<html><head><title>My Page</title></head><body><h1>Hello World</h1><p>This is a paragraph.</p></body></html>
Browser-based, files never uploaded Instant results Works on any device

How to use HTML/CSS Minifier

  1. 1Paste HTML or CSS code
  2. 2Click HTML or CSS tab
  3. 3See minified output with savings %
  4. 4Copy minified code

About this tool

Minify HTML and CSS online. Removes whitespace, comments, and unnecessary characters. Shows file size reduction percentage.

html minifiercss minifierminify htmlminify csshtml compressor

Frequently asked questions

How much does minification save?

Typically 20–40% for HTML, 20–30% for CSS.