Home / Free Tools / Utilities / CSS MinifierUtilities
Free CSS Minifier CSS Minifier — 100% free, unlimited, no sign-up cost.
Paste CSS and choose Minify or Beautify. Minifying removes comments and whitespace, drops the last semicolon in each rule and removes empty rules, while keeping strings, url() and calc() spacing intact and, optionally, /*! license */ comments. Beautify re-indents with nested media queries.
Minify CSS to shrink the file or beautify it to read. Strings, url() values and calc() spacing are preserved, license comments can be kept, and you see the bytes and gzip saved.
Use the CSS Minifier online at no cost. Common tasks this tool helps with best css minifier free online css minifier css minifier tool how to use css minifier css minifier free minify css online Use the free CSS Minifier now
What you get Your CSS with whitespace and comments removed to reduce file size Who uses the CSS Minifier Developers shrinking stylesheets Marketers speeding up landing pages Web designers preparing handoff How it works Paste your CSS or open a .css file Choose Minify or Beautify and your options Check the size saved and the gzipped size Copy or download and test before deploying Expert tips for using the CSS Minifier Keep the original CSS and minify as part of your build where possible. Check the page visually after minifying. Remove unused CSS as well, since it often gives a bigger gain than whitespace. Frequently asked questions What does CSS minification do? It removes comments and whitespace, the last semicolon in each rule and empty rules, so the stylesheet downloads faster. Strings, url() values and spacing inside calc() are kept so the rules behave the same.
How much smaller will my CSS get? The saving depends on how much whitespace and how many comments the file has. Heavily commented, well-indented files shrink the most.
Should I keep the original CSS? Yes. Keep the readable source for editing and only deploy the minified version, because minified code is hard to maintain.
Do I need to create an account to use it? No. Open the public tool page and run it directly. Copy or download the result before leaving if you want to keep it.
Is my file or data stored? No. The CSS Minifier runs entirely in your browser — your file or text is processed on your device and is never uploaded to a server.
How do I use the CSS Minifier? 1) Open the CSS Minifier. 2) Fill in your details or upload your file. 3) Copy or download the result. The whole process takes about a minute and runs on this page, on desktop or mobile.
What can I use the CSS Minifier for? Common uses: Developers shrinking stylesheets; Marketers speeding up landing pages; Web designers preparing handoff.
Can I keep license comments? Yes. Comments that start with /*! are kept unless you tick the option to remove all comments.
Is minified CSS safe to use in production? Usually yes, because only comments and whitespace are removed. Still test the result in your pages before deploying.
What is the difference between minifying and gzip compression? Minifying rewrites the file to be smaller. Gzip is applied by the server on top of that, and both can be combined.
How do I turn minified CSS back into readable code? Switch the mode to Beautify and pick 2 spaces, 4 spaces or tab indentation. Original comments removed earlier cannot be restored.
Will minifying CSS remove my license comment? Comments starting with /*! are kept by default. Tick the remove all comments option to strip them too.
More free Utilities tools Browse all free tools
Compare options: 5 Best Free CSS Minifiers Compared
Related tools Watch: how to use the CSS Minifier in 25 seconds