Code · Made a little simpler

CSS minifier

Minify CSS or beautify it with consistent indentation. Keep important comments, compare byte counts, and choose whether minification can restructure rules.

Your workspaceProcessed on your device

Undo: Ctrl/Cmd+Z · Redo: Ctrl/Cmd+Shift+Z or Ctrl+Y. Up to 20 steps and 4 million retained characters in this tab. Clear discards history.

Three small steps.

  1. Paste CSS or load a local stylesheet.
  2. Choose comment preservation and restructuring settings.
  3. Minify, review byte savings, and download the stylesheet.

A few things to know.

Rule restructuring is off by default. This is not a complete CSS standards validator; original parser details may be in English. Comments beginning with ! are preserved by default; retain any legally required notices. Test the result in the browsers and application where it will run. Limit: 1 million characters.

How your privacy works →

A little more clarity.

Does this remove all comments?

By default, important comments beginning with ! remain. Remove them only when you have checked any attribution requirements.

Why is restructuring optional?

Restructuring can combine and reorganize rules. The conservative default avoids that step, and you can enable it after checking your stylesheet.