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.

Open CSS Minifier

Where to find it

Every address below opens the same tool. The first address is the one to bookmark and share.

People also call this

What it's for: Strip comments and whitespace from stylesheets. Paste a stylesheet and get a compact version for production: comments and whitespace removed, trailing semicolons dropped, zero units and long hex colours shortened.

Use it from code

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

Inputs: JSON Schema · OpenAPI · from JavaScript: tools.run("cssminify", …) in openvibe-sdk · How the API works

Similar tools

All Developer Tools