CSS Minifier
Strips comments and extra whitespace from CSS in the browser. Paste CSS, then read a compact text result. Strings and url() contents are kept. This is not a CSS validator, not a preprocessor, and not a linter.
CSS minifier
Client-side only. CSS is not sent to a server. This strips comments and whitespace. It is not a validator, preprocessor, or linter.
How to use
- Paste CSS in the box. Surrounding whitespace is allowed.
- Read the minified CSS as text. Copy uses the clipboard on this device only.
- Nothing is sent to a server. This is not a validator, preprocessor, or linter. Refreshing the page clears the form.
Results
Paste CSS to minify.
Runs in your browser. Nothing is uploaded.
Frequently asked questions
What does this CSS minifier strip?
It strips /* comments */ and unnecessary whitespace. Spaces around { } : ; and commas are collapsed. A trailing semicolon before } is omitted. Strings and url() contents are kept. This is a small client-side minifier, not a full CSS compressor.
Is this a CSS validator, linter, or preprocessor?
No. This page is not a CSS validator, not a linter, and not a preprocessor. It does not parse Sass, Less, or PostCSS. Sloppy but text-like CSS is still minified. Invalid CSS is not diagnosed.
Are CSS comments removed?
Yes. Block comments of the form /* comment */ are stripped. Comments inside strings and url() are left alone. Comment-only input fails closed after stripping.
Is my CSS sent to a server?
No. Minify runs in your browser. The CSS never leaves the browser. There is no signup, and Tallymill does not save what you paste. Refreshing the page clears the form.
Is there a size limit?
Yes. Input larger than 100KB (100 × 1024 UTF-8 bytes) is rejected. The limit counts the actual UTF-8 byte length of what you paste. Empty and whitespace-only input also fail closed. Nothing is sent to a server either way.
Do I need an account? Does this run on the server?
No. The CSS minifier is client-side only. There is no signup. Nothing you paste is sent to a server. Refreshing the page clears the input.