How to use CSS Minifier
- Paste your CSS.
- Copy or download the minified result.
Supported features and limitations
Safe minification: comments are removed (except /*! … */ licence comments), whitespace is collapsed and the last semicolon in a block is dropped. It does not merge rules or rewrite values.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
Will minifying break my CSS?
This conservative minifier keeps strings and values intact, but always test the output.
Should I minify manually?
For production sites, a build step is better; this tool suits quick jobs.
Related tools
- CSS Formatter - Beautify minified or messy CSS with consistent indentation, one declaration per line.
- HTML Minifier - Reduce HTML size by removing comments and unneeded whitespace between tags.
- CSS Gradient Generator - Create linear or radial CSS gradients with a live preview and copy the ready-to-use background code.
- JSON Formatter & Validator - Format, minify and validate JSON with clear errors.
- URL Encoder / Decoder - Encode or decode URLs and query strings.
- Color Converter - Convert between HEX, RGB and HSL colours.