CSS Minifier

Minify CSS in your browser: strip comments and unnecessary whitespace to shrink stylesheets. Free and private, nothing is uploaded.

Paste your CSS and get back a compact, whitespace-free version with comments, extra semicolons, and unnecessary spacing stripped out, handy for shaving kilobytes off a stylesheet before deploying it or pasting it into a `<style>` tag.

How to use it

  1. Paste your CSS into the input box
  2. Click Minify to compress it instantly
  3. Copy or download the minified output

Frequently asked questions

Will minifying break my CSS?
No. The minifier only strips whitespace, comments, and redundant characters (like trailing semicolons). It doesn't change selectors, property order, or values, so the rendered output stays identical.
Does it remove comments?
Yes, regular /* */ comments are stripped by default since they only add to file size. If you need to keep a license header, put `!` right after the opening /* (e.g. /*! © 2026 */) and it will be preserved.
Is my CSS uploaded anywhere?
No. Minification runs entirely in your browser, so your stylesheet never leaves your machine, useful for client work or code you can't paste into a random web service.