99+ Free Tools
← Back to all tools

CSS Minifier

Shrink a stylesheet without changing how it renders. Nothing is uploaded or stored.

A stylesheet with colourful code on a monitor
Minification is syntactic — it does not optimise selectors or remove unused rules.

Minify

Paste CSS first.

Result

Before—
After—
Saved—
How the minifier works

Removed. Comments (unless they are licence comments you asked to keep), and whitespace that CSS does not need.

Kept. The spaces calc() needs around + and −, spaces inside strings and url(...), and the space between values such as "0 auto".

Shortened. #ffffff becomes #fff, 0px becomes 0, 0.5 becomes .5.

Local only. All work happens in your browser. Nothing is uploaded, stored or shared.