Skip to content

CSS Minifier Online

Minify CSS by stripping all unnecessary whitespace, comments, and redundant characters (trailing semicolons, etc). Output is typically 30-50% smaller than the source. Use for production deployment when bundler / build-step minification isn't available.

When to use this

Use to: minify CSS for static site deployment (where bundler-driven minification isn't available), squeeze size out of inline CSS in HTML emails, compress CSS for embedding in JSON / config files, prep CSS for storage in databases.

Frequently Asked Questions

How much smaller will my CSS be after minification?

Typically 30-50% smaller. Depends on how verbose the source is - heavily commented and formatted CSS sees biggest gains. Already-tight CSS sees less. Combine with gzip / brotli for further wire-size reduction.

Powered by CSS Beautifier & Formatter.

Other targeted versions of this tool — each tuned for a specific use case.

Or use the main CSS Beautifier & Formatter if your use case isn't covered above.