CSS Minifier
Compress CSS code by removing whitespace, comments, and redundant code
Minification Options
Choose which optimizations to apply
Input CSS
Minified CSS
About CSS Minification
CSS minification reduces file size by removing unnecessary characters without changing functionality. This improves website loading speed and reduces bandwidth usage.
Optimizations Applied
- Remove Comments: Strips all CSS comments
- Remove Whitespace: Eliminates unnecessary spaces and line breaks
- Remove Empty Rules: Deletes CSS rules with no properties
- Remove Duplicate Rules: Eliminates identical CSS rules
- Shorten Hex Colors: Converts #RRGGBB to #RGB when possible
- Remove Units: Removes units from zero values (0px → 0)
- Merge Media Queries: Combines media queries with same conditions
Always test minified CSS thoroughly. Some aggressive optimizations might affect specific CSS hacks or browser-specific rules.