Processing your request...
Minify CSS safely or turn minified CSS back into readable code, with size and gzip savings.
Every change keeps the CSS behaving the same in the browser.
| What | Before | After |
|---|---|---|
| Comments | /* Layout */ | Removed (/*! kept) |
| Whitespace | a , b { color : red ; } | a,b{color:red} |
| Last semicolon | color:red;} | color:red} |
| Hex colors | #FFFFFF | #FFF |
| Leading zeros | 0.5em | .5em |
| Empty rules | .unused { } | Removed |
| Strings and url() | "a b", url(a.png) | Unchanged |
| Custom properties | --gap: 0.50rem | Value unchanged |
Paste it, open a .css file or drop one onto the editor.
The result updates as you type.
Save it as styles.min.css, or copy it into your project.
Strings, url() values and selectors are parsed, not pattern-replaced, so your CSS keeps working.
See the size before and after, including the gzipped size your server actually sends.
Turn minified CSS back into readable code with 2-space, 4-space or tab indents.
Runs in your browser. Your stylesheet is never uploaded.
Your rating helps us decide what to improve.
Sponsored links. AppyGrid may earn a commission at no extra cost to you.