CSS Minifier
Minify CSS code to reduce file size and improve page load performance with compression statistics
How to Use This Tool
Paste your CSS code into the input textarea.
Click "Minify" to remove comments, whitespace, and optimize the output.
Or click "Beautify" to reformat compressed CSS into readable code.
View stats showing original size, result size, and savings percentage.
About This Tool
CSS Minifier compresses your CSS by removing comments, unnecessary whitespace, and redundant semicolons. Smaller CSS files load faster, improving page speed. The Beautify mode reformats compressed CSS with proper indentation. Stats show the exact byte savings. Everything runs in your browser.
Frequently Asked Questions
Typical savings range from 15-40% depending on formatting. Heavily commented CSS sees the biggest reductions.
No. Minification only removes comments and unnecessary whitespace — it doesn't change selectors, properties, or values.
Share This Tool
Related Tools
JSON Formatter
Format, validate, and beautify JSON data with syntax highlighting, error detection, and tree view
HTML Encoder/Decoder
Encode and decode HTML entities, special characters, and Unicode symbols for safe web content
URL Encoder/Decoder
Encode and decode URLs and query parameters for safe transmission in web applications and APIs
Base64 Encoder/Decoder
Encode and decode text or binary data in Base64 format for embedding images, APIs, and data transfer
JWT Decoder
Decode and inspect JSON Web Token headers, payloads, and signatures with expiration time validation
Regex Tester
Test, debug, and validate regular expressions with real-time matching, group highlighting, and flag support