CSS Minifier
Strip comments and whitespace from CSS to reduce file size.
Drop a .css file or click to browseLoads it into the input below
-72 bytes (25.0%)
Why minify CSS?
CSS minification reduces file size by removing developer-only content that browsers don't need: comments, leading/trailing whitespace, and newlines. The result is functionally identical but downloads and parses faster. This minifier strips block comments (/* … */), collapses all whitespace sequences to a single space, removes spaces around structural tokens ({}, :, ;, ,), and drops the trailing semicolon before a closing brace (permitted by the CSS spec). Typical savings range from 20–40% on real stylesheets. All processing runs locally in your browser.
Related tools: HTML Minifier · CSS Formatter · CSS Variable Extractor
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Developer Utilities tools
RegExp Tester
Test regular expressions and inspect matches locally.
Regex Visualizer
Visual regex pattern diagram with live match highlighting and capture group annotations.
Subnet Calculator
Compute CIDR subnets, usable hosts, and network ranges.
Cron Parser
Translate cron syntax into plain English.
URL Parser
Break a URL into protocol, host, path, and query parts.
HTML Previewer
Paste HTML and see it rendered live in a safe, sandboxed preview.
HTTP Status Code Reference
Search and look up every HTTP status code and its meaning.
MIME Type Lookup
Find the MIME type for a file extension, or the extensions for a MIME type.