Type a tool name, for example "keyword density" or "transcript".
Conservative CSS whitespace compression. Quoted values, comments and escapes are preserved. Maximum 2 MB per input, 5 files and 2 MB total per upload.
Minify and compress CSS code to reduce file size and improve load times.
This CSS minifier compresses your stylesheet by removing unnecessary whitespace, so the file is smaller and loads faster. Paste CSS code or upload up to five .css files, and you get the compressed output, the before and after size in KB, the percentage saved and a copy or download option. It is free and needs no sign-in.
CSS minification is the process of shrinking a stylesheet by removing characters the browser does not need, mainly spaces, tabs and line breaks, without changing how the page looks. The browser reads the compressed file the same way it reads the original.
Developers write CSS with indentation and blank lines because they make code easy to scan. Browsers ignore all of that. Every extra character still has to be downloaded, though, and CSS blocks rendering until it arrives, so a smaller file can help the page paint sooner.
This tool uses conservative compression. It focuses on whitespace and leaves quoted values, comments and escape sequences untouched. That keeps strings such as content: " " and font names exactly as you wrote them, which lowers the risk of a visual change.
You can minify CSS in two ways: paste code into the text box or upload files. Both take under a minute.
Here is a realistic case: a hand-written stylesheet with indented rules, blank lines between blocks and spaces around every colon.
A rule written over four lines, such as a .btn block with color: #fff; and padding: 8px 16px;, is turned into a single run like .btn{color:#fff;padding:8px 16px;}. The space inside 8px 16px stays, because it separates two values.
Suppose you paste a 12.480 KB stylesheet and the tool reports 9.610 KB for the compressed version. The difference is 2.870 KB, and 2.870 divided by 12.480 is about 0.23, so the tool shows roughly 23% size reduced. The same calculation applies to each row when you upload several files.
If you want to confirm nothing changed, paste the compressed code into your site, reload and compare the page. You should see identical styling.
The results show three numbers: the original size, the compressed size, and the percentage saved. All sizes are in KB.
There is no fixed target, because the saving depends on how your CSS was written. Stylesheets with deep indentation, lots of blank lines and spaced-out declarations shrink the most. A file that was already compact may drop only a few percent. Because this tool leaves comments in place, a file with long comment blocks will shrink less than you might expect.
Check whether the file was already minified, which is common with CSS from frameworks or build tools. Also check how much of it is comments. If comments are most of the weight, remove those you do not need in your editor first, then minify again.
In upload mode, the Compression column shows the original and compressed size for each file along with the percentage saved. A row with an error message instead of sizes means that file was skipped, usually because of its extension or size. Fix that file and upload it again.
Anyone who ships a stylesheet to a live website benefits, especially when they do not have a build step that does it automatically.
Minifying CSS is one part of page speed. Pair it with the JS Minifier and the HTML Minifier so all three file types are lean.
Treat the minified file as a build output, not as the file you edit. A few habits prevent most problems.
style.min.css make it obvious which file is which on your server.This tool performs conservative whitespace compression. It does not rewrite your CSS: it does not merge rules, shorten color codes, remove unused selectors or reorder properties. Comments are preserved, so the output may be slightly larger than from tools that strip them.
It also cannot fix invalid CSS. If your stylesheet has a missing brace or a typo, the compressed version will have the same problem. Validate your CSS in your editor or browser developer tools if styles look broken before and after.
Finally, minification is not a replacement for server-level compression or caching, which work alongside it. For finding unused styles, you will still need to audit your CSS separately.
Minifying your stylesheet takes less than a minute and gives you a smaller file with the same look. Paste your code or upload your .css files into the tool above, check the percentage saved, and download the result. For more utilities like this, browse the Web Developer Tools collection.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato Market