Add the source content
Paste code or technical input, upload a supported plain text file, or load the working example. Check headers, delimiters, syntax, or line structure before processing.
Developer tools
The result will appear here after you run the tool.
Press Ctrl or Command and Enter to run the tool.
About this tool
CSS Minifier compresses stylesheets by stripping comments, whitespace, and redundant separators while keeping selector functionality intact inside your browser. Minified CSS can be copied or downloaded for deployment.
Compress CSS while preserving declarations and selectors. Use the full-width workspace to minify content while reviewing syntax, encodings, protocol fields, and implementation details. The tool accepts plain text, provides focused options, and creates plain text output that you can inspect, copy, download, or save as a local draft.
Built for daily work
How to use this tool
Paste code or technical input, upload a supported plain text file, or load the working example. Check headers, delimiters, syntax, or line structure before processing.
Review the available processing controls. The selected controls determine how the CSS Minifier interprets the source and builds the result.
Start the CSS Minifier and review the result, visual preview, and technical report. Correct any reported issue and run the tool again when necessary.
Copy or download the plain text result, save a browser-local draft, or open a related tool for the next conversion, validation, or cleanup step.
Key features
Rule spacing, property indentation, and block comments are removed to produce the smallest valid stylesheet.
Optional trailing semicolons and unnecessary trailing zeros in numeric values are removed where safe.
Selectors, properties, and values remain in their original order. No rules are merged, reordered, or deduplicated.
The minifier removes only whitespace and comments. It does not optimize shorthand properties or add vendor prefixes.
Practical use cases
For local tools, input is processed in your browser and is not sent to application analytics.
Data processing noticeTechnical details
Limitations and important notes
Frequently asked questions
It compresses stylesheets by stripping comments, whitespace, and redundant separators while keeping selector functionality intact inside your browser.
No. It does not rewrite values or merge selectors beyond safe whitespace removal. Review output before deployment.
Yes. Use CSS Formatter to re-expand minified CSS for editing.
All minification occurs in your browser context without network transfer.
Related guides and solutions
Every kilobyte of CSS and JavaScript delays your page. Minification removes whitespace, comments, and formatting without changing behavior. The [CSS minifier](tool:css-minifier) and [JavaScript minifier](tool:javascript-minifier) work locally, and the [page speed guide](guide:reduce-image-size-for-website) covers the image side of the same problem.
Learn moreA step-by-step text cleanup process that uses small reversible changes, diff review, and Unicode awareness instead of destructive one-click normalization.
Learn moreA practical guide to reducing image size for the web with the [image compressor](tool:image-compressor): why image weight matters, format selection, compression levels, resizing, and verification before publishing.
Learn moreRelated tools
Developer tools
Format JavaScript source code into a cleaner readable layout.
Open toolDeveloper tools
Reduce HTML size by removing safe whitespace and comments.
Open toolDeveloper tools
Apply conservative JavaScript whitespace and comment reduction.
Open tool