CSS Minifier and Beautifier

Make stylesheets smaller or readable. It happens on your device.

Your files stay with you. Your files never leave your browser. This tool runs on your device: nothing is uploaded to our servers, so there is nothing for us to store or see.

How to use it

  1. Paste your CSS or open a .css file.
  2. Choose Minify or Beautify.
  3. Copy or download the result.

Questions people ask

What does it change when minifying?
It removes comments (except /*! licence */ ones), line breaks, extra spaces and the last semicolon in each rule, and shortens 0.5 to .5. Selectors, values and rule order are not changed.
Is calc() safe?
Yes. Spaces around + and - inside calc() are required by CSS, so they are kept. Strings and url(...) values are never edited.
How much smaller will my file get?
Commonly 20 to 40 percent for hand-written CSS. The tool shows the saving. Gzip on your server shrinks it further.
Does it support SCSS or Less?
It is built for plain CSS. Nested rules written in modern CSS are fine, but SCSS and Less syntax is not guaranteed.

Want this inside your own account?

Marketiism keeps your invoice numbers, GST reports, UPI payment links and WhatsApp reminders in one place. Leave your details and we'll call to set it up for your business, or start the trial yourself.

Start free trial

We use this only to contact you about Marketiism. No spam.

More Developer tools

JSON Formatter

Format, validate and minify JSON, and see exactly which line has a mistake.

JSON to CSV

Turn a JSON list of records into CSV for Excel or Google Sheets.

CSV to JSON

Convert CSV rows into a JSON list, with numbers and true/false detected.

Try it on your own business for two weeks.

14 days free, no card. If you get stuck setting up WhatsApp, we'll get on a call and do it with you.