Toolibra

CSS Minifier & Beautifier

Use this CSS minifier to make CSS smaller so your site loads faster. Besides removing spaces and comments, it shortens values (like #ffffff → #fff) and safely merges repeated rules. Or switch to Beautify to read minified CSS.

🔒 Your files are processed on your device and are never uploaded.

How to use

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

Frequently asked questions

What does “Merge and shorten rules” do?

It joins selectors with the same styles and removes overridden declarations, using CSSO's safe restructuring. Turn it off if you want only spaces and comments removed.

Is my license comment kept?

Yes. Comments starting with /*! are kept by default.

Is my data sent anywhere?

No. Everything runs in your browser, so your text and code stay on your device.

More free tools