CSS Minifier
Minify CSS by stripping comments and whitespace to reduce stylesheet size.
About the CSS Minifier
The CSS Minifier removes comments, whitespace and redundant characters from stylesheets to cut download size without changing how pages look.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the CSS Minifier
- Paste CSS or open a file.
- Compare the original and minified size.
- Copy or download the minified CSS.
Frequently asked questions
Will minified CSS behave differently?
No. Only characters that do not affect the rules are removed.
Should I keep the original?
Yes. Edit the readable version and minify it again for production; minified CSS is hard to maintain.
Related tools
JSON Minifier
Minify JSON by removing all unnecessary whitespace. Shows the size saved.
HTML Minifier
Minify HTML by removing comments and collapsing whitespace while preserving pre, textarea, script and style blocks.
JavaScript Minifier
Minify and mangle JavaScript with Terser for smaller bundles. Supports modern ES syntax.
XML Minifier
Minify XML by removing comments and whitespace between tags.
SQL Minifier
Compress SQL queries onto a single line, removing comments and redundant whitespace.
JSON Formatter
Format and beautify JSON with configurable indentation and optional key sorting. Errors are reported with exact line and column.