How to Minify CSS Online
Minify CSS files instantly to reduce file size and improve page load speed. Free online CSS minifier with whitespace removal, comment stripping, and shorthand optimization.
Open CSS Minifier →Step-by-Step Guide
Paste your CSS
Copy your CSS code and paste it into the input area. The tool accepts any valid CSS — stylesheets, media queries, animations, and CSS custom properties (variables).
Click Minify
Hit the "Minify" button. The tool removes all whitespace, comments, and unnecessary characters while preserving functionality. You will see the file size reduction percentage instantly.
Review the output
Check the minified result. The tool strips comments, collapses whitespace, removes trailing semicolons, and shortens color values (e.g., #ffffff → #fff) where safe.
Copy the minified CSS
Copy the compressed CSS to your clipboard. Use it in your production builds, CDN deployments, or inline styles. Typical savings: 20-40% file size reduction.
Try It Now — Free
No signup, no download. Runs entirely in your browser.
Open CSS Minifier