CSS Minifier

Minify CSS code to reduce file size and improve performance.

Tool

Result will appear here...

Example

body {
    margin: 0;
    padding: 0;
}

Output:

body{margin:0;padding:0}

How to use

  1. Paste your CSS
  2. Click Minify
  3. Copy the result

What is this tool?

This CSS minifier removes ordinary comments and unnecessary whitespace while preserving quoted strings, spaces required by expressions such as calc() and important license comments beginning with /*!.

Always test generated CSS before replacing a production file. Invalid or browser-specific CSS may need a full parser rather than a lightweight browser tool.

Related tools

🧹 JavaScript Minifier 🧹 JSON Minifier ✨ Code Beautifier