CSS Minifier
Compress CSS by removing whitespace and comments without changing behaviour.
Paste CSS and get a minified version with comments, redundant whitespace, and unnecessary characters stripped. The cascade order and computed values are preserved exactly — only the file size changes.
Common use cases: shrinking a legacy stylesheet without setting up a build pipeline, eyeballing how much you'd save, prepping inline <style> blocks for email templates, and minifying snippets pasted into CMSes.
CSS Input
Reference
Frequently asked questions
What does CSS minification actually remove?
; in a rule block, leading zeros in decimal values (e.g. 0.5 → .5), and matched-pair whitespace inside calc()/var(). Selectors, property names, and values themselves are preserved.Will the minified output behave identically?
How much smaller will my file get?
Should I commit minified CSS?
Other Formatters
View all tools →JSON Formatter
Format and validate JSON with syntax highlighting
SQL Prettify
Format and beautify SQL queries
HTML to Markdown
Convert HTML to Markdown format
Markdown to HTML
Convert Markdown to HTML
YAML to JSON
Convert YAML format to JSON with syntax validation
JSON to YAML
Convert JSON to YAML format for configuration files
CSS Beautifier
Format and beautify minified CSS code