How to use CSS Minifier
Remove CSS comments and optional whitespace conservatively. Conservative minification supports simple declarations. Strings, url() and calc() are rejected because whitespace can be significant there.
- Set Input.
- Run the tool, review the result and its stated limitations, then copy or download if needed.
Example & practical use
Remove CSS comments and optional whitespace conservatively. The example below demonstrates Input.
Example input:
{
"text": "/* note */ p { color: red; margin: 0; }"
}
Expected result (relevant fields):
"p{color:red;margin:0}"Features & result limitations
Conservative minification supports simple declarations. Strings, url() and calc() are rejected because whitespace can be significant there.
Frequently asked questions
What inputs does CSS Minifier accept?
Input
How should I interpret the CSS Minifier result?
Conservative minification supports simple declarations. Strings, url() and calc() are rejected because whitespace can be significant there.
Where does CSS Minifier process my data?
Inputs are processed locally in your browser. Submitted text is not sent to external services. A successful-run event increments an aggregate tool counter without your input.