Loading...
Loading...
We use cookies to enhance your experience, analyze site usage, and serve personalized content. By clicking "Accept All," you consent to our use of cookies. See our Cookie Policy and Privacy Policy for details.
Minify CSS code by removing whitespace and comments for faster page loads
Interactive CSS Minifier
Tool interface coming soon
Minifies CSS with five configurable options: color compression (shortening #FF6600 to #f60), merging identical rules, merging adjacent identical selectors, removing unnecessary quotes, and clearing empty rules. Displays live size comparison with original vs minified byte count and percentage savings, plus side-by-side visual diff of before/after content.
CSS file size directly impacts page load performance. A dedicated minifier with granular control over optimizations lets developers balance compression ratio against readability for their specific deployment scenario.
Web performance engineers optimizing Core Web Vitals, frontend developers bundling assets for production, CMS developers minifying user-submitted CSS, and anyone deploying CSS to bandwidth-constrained environments.
Paste CSS or upload a .css file — minified output updates in real-time
Toggle options: 'Compress Colors', 'Merge Rules', 'Merge Adjacent', 'Remove Quotes', 'Clear Empty Rules'
Monitor the size comparison bar — updates with each toggle change
Review side-by-side diff view to see exactly what changed
Click 'Copy Minified' or 'Download' to save as .min.css
Use 'Copy Stats' to copy size comparison data for reporting
Input: 'a { color: #ff6600; background: #ffffff; }' | Compress Colors ON => Output: 'a{color:#f60;background:#fff}'Input: '.foo { color: red; } .bar { color: red; }' | Merge Rules ON => Output: '.foo,.bar{color:red}'60-70% of original size. With gzip, 70-80% total.
No. #FF6600 and #f60 are identical in every browser.
No, it's lossy for formatting. Use CSS Formatter to beautify but comments are lost.
Yes, preserves them. 'Remove Quotes' strips unnecessary url() quotes.
Format, validate, and minify JSON data with syntax highlighting
Format and beautify SQL queries with syntax validation
Minify, beautify, and validate JavaScript code with customizable options
Format, validate, and minify HTML code online free
Dive deeper with our comprehensive guides and tutorials.