CSS Minifier

Paste your CSS and instantly get a minified version with comments and whitespace removed.

Original CSS

0 bytes

Minified CSS

0 bytes
Copied!

Summary

Paste your CSS and instantly get a minified version with comments and whitespace removed.

How it works

  1. Paste your CSS source code into the input panel on the left.
  2. The minifier instantly strips block comments (/* ... */) and line whitespace.
  3. Redundant spaces around selectors, properties, colons, and semicolons are removed.
  4. The last semicolon before a closing brace is dropped (valid CSS shorthand).
  5. The minified output appears in the right panel with byte savings displayed.
  6. Click "Copy Minified CSS" to copy the result to your clipboard.

Use cases

  • Reduce CSS payload before deploying a production website.
  • Quickly compress a stylesheet when a build tool is not available.
  • Compare original and minified sizes to estimate bandwidth savings.
  • Strip development comments from a CSS file before shipping.
  • Minify third-party CSS that lacks a pre-built minified version.
  • Optimize CSS for embedding in an email template.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu