CSS Minifier & Beautifier

Compress CSS for production or expand it for editing.

Free online css minifier & beautifier by AIML Digital. It runs 100% in your browser: no sign-up, no limits, and nothing you enter is sent to a server.

Formula

How it works

  1. Remove comments and whitespace, tighten around { } : ; , > ~ +, drop the last semicolon in a block and units on zero values.
  2. Beautify re-inserts line breaks and indentation per block.

Frequently asked questions

Is the CSS Minifier & Beautifier free?

Yes. The CSS Minifier & Beautifier by AIML Digital is completely free, with no sign-up, no limits and no watermark.

Is my data sent anywhere?

No. The CSS Minifier & Beautifier runs entirely in your web browser using JavaScript. What you type stays on your device.

What formula does the CSS Minifier & Beautifier use?

Saved % = (1 − Minified length ÷ Original length) × 100.

How does the CSS Minifier & Beautifier work?

Remove comments and whitespace, tighten around { } : ; , > ~ +, drop the last semicolon in a block and units on zero values. Beautify re-inserts line breaks and indentation per block.

Does the CSS Minifier & Beautifier work on mobile?

Yes. It works in any modern browser on phone, tablet or desktop, and keeps working offline once loaded (except tools that load a helper library the first time).

More Developer tools