CSS & HTML Minifier
Minify CSS or HTML to shrink file size — strips comments and whitespace and shows how many bytes you saved.
How to use
- 1Choose CSS or HTML and paste the code.
- 2Copy the minified output; the size saving is shown below.
Frequently asked questions
Is minification safe?
Yes for standard code: only comments and unnecessary whitespace are removed. Content inside <pre>, <textarea> and strings is preserved.
How much smaller will files get?
Typically 15–30% for hand-written CSS and HTML. Gzip or Brotli compression on your server saves much more on top.
How do I minify JavaScript?
Use the JavaScript Minifier tool, which safely renames variables and removes dead code.