Enter your input
CSS text. Use Try example where available to see the expected shape.
Compact CSS whitespace and compare UTF-8 byte sizes.
Conservative whitespace compaction; preserves strings and CSS math. Does not validate or optimize rules.
Last reviewed: Β· Testing methodology
Compact CSS whitespace and compare UTF-8 byte sizes.
CSS text. Use Try example where available to see the expected shape.
Select the relevant mode or settings. Automatic tools update as you type; other tools use the labeled primary action.
Check the result against your input, then use the available copy or download action. Edits clear or recompute the result.
Inputs are processed in your browser. Analytics and advertising can make separate network requests.
width: calc(100% - 2px) must retain spaces around the subtraction operator. content: "a b" must retain the two spaces inside the string.
Savings depend on the input. Check browser rendering; a smaller character count does not guarantee a measurable performance improvement.