CSS Minifier

Minify CSS files for faster loading

FreeNo sign-upDeveloper Tools →

CSS Minifier / Beautifier works in both directions. Minify strips comments, line breaks and unnecessary spaces to produce the smallest equivalent stylesheet. Beautify does the reverse, expanding compressed CSS into one declaration per line with indentation so it can be read and edited.

The original and output sizes are shown so you can see the saving. The tool works on the text of your CSS; it does not merge duplicate rules, remove unused selectors or rewrite values.

Advertisement

How to use CSS Minifier

1

Paste CSS

Add the stylesheet to the input.

2

Choose Minify or Beautify

Switch modes at the top.

3

Copy the output

Check the size and copy.

Use Cases

  • Shrinking a stylesheet for a site without a build step
  • Reading a minified file from someone else's site
  • Tidying CSS before pasting into a CMS

Frequently Asked Questions