belun.app

CSS Minifier — Compress & Minify CSS Code

Original: 0 bytes
Minified: 0 bytes
Savings: 0%

Paste your CSS and get a minified version instantly. The tool strips comments, collapses whitespace, and removes unnecessary characters — typically cutting file size by 20–50%. Everything runs client-side, so your code never leaves your browser.

What CSS minification leaves alone

Minifying strips formatting only. Unused rules stay in the file; removing them takes a tool such as PurgeCSS. Duplicate selectors are not merged, longhand properties are not rewritten as shorthand, and specificity is untouched. A stylesheet that already went through a build tool usually loses just 3–8% more, mostly trailing semicolons and stray spaces.

Minification, gzip and build tools

The two savings stack. A minified file also compresses better, since gzip has less redundant text to encode. Webpack, Vite, Parcel and esbuild all minify CSS in production mode. A manual pass suits projects without a build step: a static site, an inline <style> block, or a third-party stylesheet you are weighing before inlining it.

Frequently asked questions

Will minified CSS work the same as the original?
Yes. It removes only characters the browser ignores: whitespace, comments and the last semicolon in a block. Spaces that matter stay, so calc(100% - 10px) and quoted strings come out unchanged.
Does this tool handle SCSS or Less?
No, it works on plain CSS only. Compile your preprocessor files to CSS first, then minify the output.
Does the CSS minifier keep /*! license comments?
No. Every comment is removed, including ones that start with /*! and carry a licence notice. If the licence must stay in the file, paste it back at the top of the minified output.

Related tools