CSS Minifier
Reduce CSS structural whitespace while protecting literal and function contents.
CSS Minifier workspace
Up to 200,000 input characters, depth 40 and 20,000 JSON nodes. Processing stays on this device; no input is stored. Use an example to inspect the accepted input structure.
Enter input or use the example.
How to use CSS Minifier
Paste complete CSS rules, run, then compare the output before use.
Supported workflow and acceptance requirements
Token-aware CSS whitespace normalization with quoted URLs, comments, custom properties and calc() preservation; reject malformed CSS.
Limits and local processing
Comments remain. Strings and function spacing remain intact. Nested style rules, brace-valued custom properties and standalone at-rules are unsupported; arbitrary invalid property values are not fully validated. Input is processed on this device without uploads. Browser workers and Web Crypto are required for the applicable tools; clipboard access depends on browser support.