CSS Minifier

Minify CSS by removing whitespace, comments, and unnecessary characters to reduce file size.

Input CSS

Minified CSS

.container{max-width:1200px;margin:0 auto;padding:20px}.header{background-color:#3B82F6;color:white;padding:1rem 2rem;border-radius:8px}.button{display:inline-block;padding:10px 20px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border:none;border-radius:4px;cursor:pointer}.button:hover{opacity:0.9;transform:translateY(-2px)}

Compression Results

Original Size

436 bytes

Minified Size

352 bytes

Bytes Saved

84 bytes

Reduction

19.3%

Optimizations Applied

  • Remove comments
  • Remove unnecessary whitespace
  • Remove trailing semicolons
  • Shorten hex colors (#ffffff to #fff)
  • Remove units from zero values