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
- Copy the sample rule with its selector and two declarations.
- Minify the copy and inspect the resulting compact rule.
- 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.