CSS Minifier

Minify CSS code safely.

Compact local CSS syntax using a parser/generator; no value optimization or URL/import fetching. Strings, URLs, raw custom-property text and calc/var token separation are retained. Ordinary parsed comments are removed; comments within raw custom properties remain. Top-level /*! preserve comments */ stay in place; nested ones may move to the end. Parse errors are reported; this is not complete property-value validation.

Combined input limit: 200,000 UTF-16 characters. Oversized input is rejected before processing; any smaller tool-specific limits are stated above.

How to use CSS Minifier

Minify CSS code safely.

  1. Paste a small valid example first, then enter your own development input.
  2. Review syntax, encoding and the tool limits before using the output in code.
  3. Review the result, then copy or download it.

Inputs and options

Input

Example input

input: .box { color: red; padding: 8px; }

Use the example button when available, or paste these values into the corresponding fields.

Formats and limits

Compact local CSS syntax using a parser/generator; no value optimization or URL/import fetching. Strings, URLs, raw custom-property text and calc/var token separation are retained. Ordinary parsed comments are removed; comments within raw custom properties remain. Top-level /*! preserve comments */ stay in place; nested ones may move to the end. Parse errors are reported; this is not complete property-value validation.

Frequently asked questions

Are my inputs uploaded?

Tool processing runs on your device. Your input is not sent to a processing server. Some tools may download runtime files or use platform features; see the tool notes.

What should I check before using the result?

Review the selected format and options. Decoding a token does not verify its signature; formatting code does not validate its behavior.

Can I use this tool for free?

Yes. ToolXovo tools are free to use. Beta tools are still being validated; check their notes and exported results.