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
- Paste your CSS into the input box
- Click Minify to compress it instantly
- 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.
- 1
Nothing is uploaded
The file never leaves your device. There is no server to send it to, so there is nothing to leak, log, or subpoena.
- 2
No signup, no limits
No account, no email, no daily cap, no watermark, and no paid tier waiting behind the third file.
- 3
Works offline
Load the page once and it keeps working with the network off, because all the work was always happening locally.