CSS Minifier
Minify CSS with this free online CSS minifier: strip comments and whitespace safely, see bytes saved, or beautify minified CSS back into readable code.
Processed locally in your browserHow?
This tool runs in this browser tab. The files, text and values you enter are not uploaded to clkr.work servers — closing the tab clears them. Anonymous usage events (such as which button was pressed) are counted, never your content. Privacy policy
What next?
Found it useful? Share CSS Minifier
Free, no sign-up, works in the browser — send it to a friend or add it to your site.
Related tools
- SQL FormatterFormat and beautify SQL queries with this free online SQL formatter: clean line breaks, indentation and uppercase keywords, or minify to one line.
- XML FormatterFormat, beautify and validate XML with this free online XML formatter. Pretty-print with spaces or tabs, minify, and see the exact line of any error.
- JSON FormatterFormat and validate JSON instantly. Free online JSON formatter — paste messy JSON, beautify or minify, catch errors in your browser.
- Binary TranslatorTranslate text to binary and binary to text with this free online binary translator, and convert numbers between binary, decimal, hex and octal.
- Cron Expression GeneratorExplain any cron expression in plain English and see the next run times. Free online cron expression generator and crontab guru alternative with presets.
- Diff CheckerCompare two texts online free and highlight every difference by line, word or character. Free online diff checker with ignore case and whitespace options.
Part of the toolkit
How to use CSS Minifier
- 1Paste your CSS or open a .css file
- 2Choose Minify to compress it, or Beautify to format minified CSS into readable, indented code
- 3Check the size savings, then copy the result or download it as a .css file
Frequently asked questions
Does minifying change how my CSS works?▾
No. Only comments, extra whitespace and redundant semicolons are removed. Strings, url() values and meaningful spaces — in calc(), descendant selectors like 'a :hover' and media queries — are kept.
How much smaller will my CSS get?▾
Hand-written, well-commented CSS usually shrinks by 15–30%. Already minified files barely change. Serving it with gzip or Brotli compresses it further.
What are /*! comments?▾
Comments starting with /*! are license or copyright notices that minifiers keep by convention. Untick the option to remove them too.
Can I unminify CSS?▾
Yes. Switch to Beautify and paste minified CSS to get one declaration per line with indentation, including nested rules and media queries.
Embed CSS Minifier on your website▾
Paste this snippet into your page. The embedded tool runs in your visitor's browser and shows a small “Powered by clkr.work” link.