CSS Minifier
CSSMinify and beautify CSS
Works both directions: paste readable CSS to minify it before shipping, or paste an unreadable production bundle to beautify it back into something you can actually debug. Minification here only strips whitespace, comments, and redundant characters. Selectors, specificity, and values stay exactly as they were, so behavior is guaranteed identical, and it's a good way to estimate size savings before wiring up a real build-step minifier. It handles plain CSS only, not SCSS or LESS source, so preprocessor files need to be compiled first. For a one-off cleanup this is fine, but a real production pipeline should still use a build-integrated minifier like cssnano via PostCSS so minification happens automatically and consistently on every build rather than manually.
How to use CSS Minifier
- 1.Paste readable CSS and minify it to strip whitespace and comments before shipping it to production.
- 2.Paste minified, unreadable CSS from a production bundle and beautify it to actually debug or read it.
- 3.Use it to quickly estimate file-size savings from minification before wiring up a build-step minifier.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/css-minifier \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"input":"body { color: red; /* primary */ }"}'Get an API key from your dashboard · Full API docs →