CSS Minifier

Shrink stylesheets by removing comments and whitespace.

Runs in your browser Developer Tools Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Removes CSS comments and unnecessary whitespace, keeping quoted strings and calc() expressions intact. The result panel shows the size saved so you can judge the impact before shipping the stylesheet.

How to use it

  1. Paste the CSS you want to compact.
  2. Press Minify CSS.
  3. Copy the result or download it as a .css file.

Frequently asked questions

Does it rename classes or merge rules?
No. It only removes comments and whitespace, which keeps the output predictable and safe.
Why is a space kept in media queries?
Spaces that separate tokens, such as screen and (min-width: 600px), are semantically required and are preserved.

Keep going

More in this category