CSS Minifier: Minify CSS Stylesheets
Minify CSS in this browser. Comments and extra whitespace are stripped. Strings, url() values, and the required spaces around + and − in calc(), min(), max(), and clamp() stay intact. Nothing is uploaded.
Drop a .css or .txt file here. Client-only FileReader. 2 MB cap.
Output updates as you type. Download saves styles.min.css.
What this tool does
It tokenizes CSS in the style of CSS Syntax Module Level 3, then removes comments and whitespace that are not required to keep the same tokens. It does not evaluate calc(), rewrite colors, merge rules, or shorten identifiers.
Limitations: custom-property values may lose author whitespace; unclosed comments swallow the rest of the sheet; the tool reports tokenizer and brace issues but still emits a best-effort result. Invalid property values are not evaluated.