Skip to main content
Utilnivo

Developer

Utilnivo

CSS Minifier

Compress CSS by removing comments and whitespace—see bytes saved.

No registration
  • On your device

Browse more in Developer or all tools.

Private on your device

Your information stays on your device and is not uploaded.

Dedicated CSS compression for production. Paste a stylesheet, copy the minified output, and review before-and-after byte counts. Comments and extra spaces are removed while rule order and selectors are preserved.

How to use this tool

Paste CSS into the input editor. Minified output updates as you type. Use the Format button to switch to readable indentation, then copy the compact stylesheet for production.

Worked example

Example: `.header { color: #111; /* brand */ padding: 1rem; }` minifies to `.header{color:#111;padding:1rem}`—about 40% smaller for this snippet, with comments removed.

How it works

Opens the CSS Formatter in minify mode. Removes block comments and collapses whitespace around braces, colons, semicolons, and commas while preserving rule order and selectors.

Limitations

Whitespace and comment removal only—no color shortening, selector merging, or unused-rule removal. Use CSS Formatter and Minifier to pretty-print and minify in one tool.

Privacy and file handling

Your data stays on your device and is not uploaded.

FAQ

Frequently asked questions

How is this different from CSS Formatter and Minifier?

CSS Minifier focuses on compression only—it removes comments and whitespace and shows how many bytes you saved. The combined formatter also lets you pretty-print CSS in the same panel.

Does it optimize CSS values or merge rules?

No. It compresses whitespace and strips comments. It does not shorten colors, remove unused selectors, or run advanced optimizations.

Is my CSS stored?

No. Minification works on your device.

Page last reviewed: