CSS minifier

Removes comments, indentation and the spaces around braces and colons, then shortens hex colours and leading zeros. It never reorders selectors or declarations.

  • No reordering
  • Shorthand hex
  • Download or copy
Original0 B
Minified0 B
Saved0 B
Reduction0%
Nothing to minify yet
Good to know

How CSS is minified

1

Order is preserved

Nothing is merged, deduplicated or reordered, so the cascade behaves exactly as it does in your source.

2

Comments and licences

Every comment is removed, licence headers included. Keep the original file if a dependency requires attribution in the build.

3

Colour shortening

Six-digit hex values with repeating pairs become three digits and render identically.

4

When to reach for a build tool

For autoprefixing, nesting or removing dead rules, use a proper build pipeline. This tool is for a quick pass before pasting into production.