CSS Minifier

Paste your CSS and get a smaller version with the size you save.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open CSS Minifier and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What CSS Minifier does

    Shrink CSS by removing comments and extra spaces.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Paste your stylesheet and the minifier removes comments, line breaks and extra spaces, drops the last semicolon in each block and shortens zero values. Strings and url() values are left untouched. Smaller CSS loads faster, which helps page speed. Keep your original file for editing.

When to use it

Shrink CSS by removing comments and extra spaces.

Tips

Keep a readable copy. Test after minifying.

Privacy

Everything runs in your browser, so your data is not uploaded or stored.

Worked example

Say you want a quick answer before a decision. Open CSS Minifier, type in the figures you already know, read the result, and then change one number to see how much the answer moves. Write down both results so you can compare them later.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

Will it change how my page looks?

No. Only comments and spaces are removed, so the rules stay the same.

Does it work offline?

Yes. It runs in your browser and your code is not uploaded.

Is it safe?

It only removes whitespace and comments.

How much will it save?

Often 20 to 40 percent.

What is CSS Minifier?

CSS Minifier is a free browser tool: shrink CSS by removing comments and extra spaces. You open the page, provide your input, and get the result on the same screen.

How accurate or reliable is the result of CSS Minifier?

The result is an estimate based on the figures and rules you enter. Rates, thresholds and laws change, so confirm anything important with the official source or a qualified adviser before you act on it.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages