Convert colors between HEX, RGB, HSL, and CMYK — online color converter with live preview.
Open toolMinify CSS
Compress CSS by stripping comments and all unnecessary whitespace.
Privacy and limitations
Your tool input is processed in this browser rather than submitted to our server. Large inputs can be slow or exceed your device's memory. Keep a copy of the original and check the output before relying on it; formatting or conversion does not establish that the content is correct or safe.
Read the privacy policyAbout Minify CSS
This tool compresses CSS by removing comments and every unnecessary whitespace character - unlike JavaScript, CSS has no equivalent of Automatic Semicolon Insertion, so it's completely safe to collapse everything onto a single line for maximum size reduction.
How to use this tool
- 1Paste your CSS, or upload a .css file.
- 2Click Run.
- 3The size reduction percentage is shown next to the output.
- 4Copy the result or download it as a .css file.
Common use cases
Frequently asked questions
Is it safe to join all the CSS onto one line?
Yes - CSS has no line-based semantics like JavaScript's Automatic Semicolon Insertion, so removing all whitespace and newlines never changes what the stylesheet does.
Does it handle comments correctly?
Yes - /* ... */ style comments are stripped completely, including multi-line ones.
Will it break my CSS custom properties or calc() expressions?
No - whitespace is only trimmed around selectors and punctuation like braces, colons, and semicolons; the meaningful content of values, including calc() expressions and custom property names, is preserved.
Is my CSS sent anywhere?
No - everything runs locally in your browser.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Converters"
}