CSS Minifier
Minify CSS in your browser: strip comments and extra whitespace. Free CSS minifier for quick compression, no upload.
Processed locally in your browser.
How to use this css minifier
Paste CSS and click Minify. Comments and redundant whitespace are removed while strings are preserved.
This is a fast client-side minifier, not a full PostCSS pipeline. It will not rewrite longhand properties or merge selectors.
Example
body { color: red; } minifies toward body{color:red}.
Related tools
More formatting tools
- JSON Formatter — Format, minify, and validate JSON in your browser. Paste JSON, pretty-print with 2-space indent, or compress to one line. Free, no signup.
- JSON Validator — Validate JSON syntax instantly in your browser. Paste JSON to see whether it parses, with a clear error if it does not. Free JSON checker.
- HTML Formatter — Beautify HTML with consistent indentation in your browser. Free HTML formatter, no signup, source stays on your device.
- JavaScript Minifier — Minify JavaScript in your browser by removing comments and extra whitespace. Free JS minifier, source stays local.
- SQL Formatter — Format SQL queries with keyword breaks and indentation in your browser. Free SQL formatter for SELECT, INSERT, UPDATE, and more.
- XML Formatter — Pretty-print XML with nested indentation in your browser. Free XML formatter and beautifier, no signup.
Frequently asked questions
Will this break my CSS?
Quoted strings and comments are handled. Extremely unusual hacks can still confuse a lightweight minifier—spot-check the output.
Does it autoprefix?
No. It only compresses whitespace and comments.
Is CSS uploaded?
Processed locally in your browser. We do not upload the text to compute a result.
Last reviewed 2026-08-19. Results stay on your device unless you copy them elsewhere.