Navigation

CSS Minifier

Compact CSS whitespace and compare UTF-8 byte sizes.

Conservative whitespace compaction; preserves strings and CSS math. Does not validate or optimize rules.

Minified CSS
Original Size
245 bytes
Minified Size
200 bytes
Compression Ratio
1.23x
Savings
18.37%
Share

Last reviewed: Β· Testing methodology

How to use

Compact CSS whitespace and compare UTF-8 byte sizes.

1

Enter your input

CSS text. Use Try example where available to see the expected shape.

2

Choose options and run

Select the relevant mode or settings. Automatic tools update as you type; other tools use the labeled primary action.

3

Review the result

Check the result against your input, then use the available copy or download action. Edits clear or recompute the result.

Limits and questions

Inputs are processed in your browser. Analytics and advertising can make separate network requests.

A result you can check

width: calc(100% - 2px) must retain spaces around the subtraction operator. content: "a b" must retain the two spaces inside the string.

Before using the result

Savings depend on the input. Check browser rendering; a smaller character count does not guarantee a measurable performance improvement.

Frequently asked questions

What does this tool support?
CSS text. This does not validate, optimize or rewrite CSS rules. Check the copied result in your target environment.
Where is my input processed?
Tool calculations and conversions run locally in your browser. Existing analytics and advertising requests are separate from input processing.