CSS minifier
Shrink CSS by removing comments and whitespace, keeping strings, url() values and license comments safe.
Runs in your browserNothing uploadedWorks offline
Set up for this job. It runs on JS, CSS and HTML minifier, where every option is there to change.
Loading CSS minifierRuns on this device. Nothing is uploaded.
Questions
What does it remove?
Comments and whitespace that never matters. Spaces that change meaning, such as in calc(1px + 2px) or before :hover, are kept.
Does it merge or drop rules?
No. It does not rename classes, merge selectors or remove rules, so the result behaves exactly like your original.
Are license comments kept?
Comments that start with /*! or contain @license or @preserve are kept while Keep license comments is ticked.
Related tools
All developer toolsDeveloperjs mjs cjsJS, CSS and HTML minifierMinify JavaScript with Terser, and CSS and HTML with a careful whitespace and comment stripper. See the size before and after.Developerjs mjs cjsHTML minifierShrink HTML by removing comments and extra whitespace, leaving <pre>, <textarea> and scripts untouched.Developerhtml htmHTML viewer and live editorPaste or open HTML and see it render live as you type, at phone, tablet or full width, with one-click formatting and scripts off unless you turn them on.Developerjs mjs cjsJavaScript minifierMinify JavaScript with Terser: comments and whitespace removed, local names shortened, license comments kept if you like.DeveloperBase64 encode and decodeEncode text or any file to Base64 and decode Base64 back to text or the original file, with a URL-safe option.DeveloperBinary to decimalConvert binary numbers of any length to decimal, with hex and octal shown too, exactly and as you type.