TL
Tool Lab
πŸ’°Donate
πŸ’°Donate

CSS Minifier

Minify and compress CSS

Input CSS
Minified CSS

About This Tool

CSS minification strips all whitespace, comments, and redundant characters from a stylesheet while preserving its full functionality. The browser interprets minified CSS identically to the original β€” it's purely a size reduction for faster delivery.

On large stylesheets, minification typically reduces size by 20–50%. Combined with gzip compression on the server, the savings are even greater. Most build tools (Webpack, Vite, Parcel) include CSS minification automatically for production builds.

How to Use

  1. Paste your CSS into the input panel on the left.
  2. Click Minify to compress the CSS.
  3. The savings indicator shows how many characters were removed.

Use Cases

Front-end developers reduce CSS bundle size before deploying to production. Useful for manually minifying third-party stylesheets or legacy CSS not managed by a build tool. Also handy for quickly testing how much a stylesheet can be compressed.

FAQ

  • Will minification change how my CSS behaves? β€” No. Minification only removes whitespace, comments, and redundant semicolons β€” it never modifies selectors, property names, or values.
  • Are CSS comments removed? β€” Yes. All comments (/* ... */) are stripped during minification to reduce file size.
  • Is my CSS sent to a server? β€” No. All processing happens locally in your browser. Your CSS never leaves your device.