Rotate PDF pages left, right or upside down. Switch portrait and landscape, preview changes, and download without losing quality.
Open toolMinify CSS
Compress CSS by stripping comments and all unnecessary whitespace.
What is a 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"
}