CSS Minifier — Compress CSS Online, Free & Fast
Minify CSS online — strip comments, whitespace, and unnecessary characters. See exact bytes saved. Output is valid CSS. 100% local, no upload.
Last updated:
CommentsPaste CSS to strip comments, whitespace, and unnecessary characters. See exact bytes saved — output remains valid CSS.
Saved 27 bytes (17.5%)
.card{margin:16px;padding:12px;border-radius:8px;background-color:#ffffff}.card:hover{box-shadow:0 4px 12px rgba(0, 0, 0, 0.1)}What is CSS Minifier?
CSS minification removes comments (/* */), line breaks, indentation, and unnecessary whitespace around selectors and properties. The output is semantically identical to the input — every rule, selector, and declaration is preserved — but the file size is typically 20-40% smaller. Minified CSS loads faster because fewer bytes travel over the network and the browser's CSS parser has less work to do.
How to minify CSS online
- 1Paste your CSS into the editor.
- 2The minified output appears in the code panel.
- 3See the byte-count card for original size, minified size, and percentage saved.
Frequently Asked Questions
How much does CSS minification save?
For typical well-formatted CSS with comments, expect 20-40% reduction. For CSS that's already compact, savings are smaller (5-10%). The byte-count card shows the exact delta.
Does minification break CSS?
No — minification is whitespace and comment removal. Our minifier removes block comments (/* */), line comments, and collapses whitespace around selectors and properties. The output is valid CSS.
Should I use a CSS minifier or a CSS preprocessor?
Minification is the last step — it compresses the output. Preprocessors (Sass, Less, PostCSS) add features like variables, nesting, and mixins. They work well together: write in Sass, compile to CSS, then minify the compiled output.
Try Next
Meta Tag Preview
Preview how your page will appear in Google search results and social share cards on Facebook, Twitter/X, and LinkedIn. Parses <title>, meta description, canonical, and full Open Graph / Twitter Card tags with diagnostics. 100% local.
Related Tools
CIDR Calculator
Calculate IPv4 subnets from CIDR notation online. Get network address, broadcast, netmask, wildcard, usable host range, IP class, and binary representation. 100% local — nothing leaves your browser.
Color Converter
Convert colors between HEX, RGB, HSL, and HSV instantly with a live color preview and copy-ready CSS strings. Free, no signup, runs entirely in your browser.
User Agent Parser
Parse User-Agent strings to identify browser, engine, operating system, and device. Instantly see what your own browser sends.
HTTP Status Codes
Complete reference of HTTP status codes with meanings, use cases, and RFC citations. Search 60+ codes from 100 Continue to 511 Network Authentication Required.
cURL Converter
Convert cURL commands to Python (requests), JavaScript (fetch), Node.js, Go (net/http), PHP, or Java (HttpClient). Parses -H, -d, --data-urlencode, -F, -u, --json and more. 100% local.
URL Parser
Parse any URL into scheme, host, port, path, and query parameters — or build a URL from scratch with a form. Great for debugging redirect chains, tracking pixels, and OAuth flows. 100% local.