CSS Minify
Compress a stylesheet by removing comments, whitespace and redundant characters.
- Runs in your browser
- Free to use
About this tool
CSS Minify compresses a stylesheet with the vkBeautify minifier directly in your browser, removing comments, whitespace and trailing semicolons without altering any rule, and reports how much was saved. Use CSS Unminify to get a readable version back.
How to use it — quick steps
- 01
Enter the css
Type or paste the css in the field above, for example /* buttons */. Nothing is uploaded.
- 02
Adjust the options
Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.
- 03
Press "Minify CSS"
Press "Minify CSS" or Ctrl + Enter. The result appears instantly below the form. Results can be copied.
Key features of this tool
Nothing leaves your browser
The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.
Instant results
Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.
Works everywhere
No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.
Frequently asked questions
Does it rewrite values?
No, it only removes whitespace, comments and unnecessary semicolons. Colours, units and shorthand are left as written.
What about @media and nested rules?
They are preserved; only formatting changes.
Are my files or data uploaded?
No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.