CSS Minifier & Beautifier

Minify CSS to reduce file size or beautify it for easier reading.

Tool

Was this tool useful?

About this tool

About CSS Minifier & Beautifier

Smaller CSS files load faster. Minify for production or beautify minified code to edit it.

How it works

Minifying removes comments, extra whitespace and the last semicolon in each block; it does not rename anything.

Example

A 20 KB stylesheet often shrinks by 15–30% after minification.

How to use this tool

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

Frequently asked questions

Can minifying break my CSS?

It only removes characters that browsers ignore, but always test after minifying.

Does it support media queries?

Yes.

Does the CSS Minifier & Beautifier send my data to a server?

No. The CSS Minifier & Beautifier runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.