CSS Minifier

Create a smaller CSS string for delivery while keeping a readable source copy.

Create a smaller CSS string for delivery while keeping a readable source copy.

How to use

  1. Copy the sample rule with its selector and two declarations.
  2. Minify the copy and inspect the resulting compact rule.
  3. Match both property names and values to those in the original.

Worked example

Input

.card { margin: 0; padding: 12px; }

Expected result

.card{margin:0;padding:12px;}

Check the result

The output is shorter but still contains the selector and both declarations.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies