Code and data

CSS Minifier

Strip comments and whitespace from stylesheets.

  • Free
  • Runs in your browser: nothing is sent
  • API: 120 runs a minute without an account
  • No sign-up
About CSS Minifier

Paste a stylesheet and get a compact version for production: comments and whitespace removed, trailing semicolons dropped, zero units and long hex colours shortened. Strings and url() values are left untouched.

  • Removes comments, whitespace and redundant semicolons
  • Shortens #ffffff to #fff and 0px to 0
  • Leaves strings and url() values alone
Questions · 1

Does it change how my CSS works?

No. It only removes characters the browser ignores and rewrites values into shorter forms that mean the same thing.

Use it from code · API

Input: text. No account needed within the free limit; a token with tools.tool.run raises it.

curl -X POST https://openvibe.tools/api/v1/tools/cssminify/run \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":".a { color: #aabbcc; margin: 0px; }"}}'

JSON Schema · OpenAPI · API docs