All extensions

CSS Compressor

Minify CSS with the CSSO engine in a full-tab editor, see how many bytes you saved, and beautify code to read it.

CSS Compressor

Click the toolbar icon to open a two-panel editor in a new tab. Paste your stylesheet, click Compress, and copy or download the minified result. A Beautify switch on each panel formats minified code so you can read it, and turns it back with one click.

Works in ChromeEdgeOperaBraveVivaldi

Features

  • Real minification with CSSO

    Removes comments and whitespace, shortens colors and zero values, merges duplicate rules and collapses shorthand such as 16px 24px 16px 24px to 16px 24px.
  • Size and savings stats

    Original size, compressed size, total savings in percent and processing time appear after every run.
  • Beautify either side

    Format the source or the output with 2-space indentation to read or debug it. Uncheck Beautify to get the exact previous text back.
  • Copy or download

    Copy puts the output on the clipboard, Download saves it as minified.css.
  • Full-tab editor

    Both panels use the whole browser window, so long stylesheets are easy to scroll and compare.
  • Light and dark theme

    Follows your system theme, or pick one with the moon and sun button and it is remembered.

How to use

  1. Add CSS Compressor to Chrome from the Chrome Web Store and pin it to the toolbar.
  2. Click the icon. The editor opens in a new tab.
  3. Paste your CSS into Source CSS and click Compress.
  4. Check the savings in the stats bar, then click Copy or Download.
  5. To read minified code, paste it into the source panel and tick Beautify. Click Clear All to start over.

Why use it?

  • Faster pages

    Smaller stylesheets download and parse faster. Paste a theme's CSS before you ship it and see the difference in bytes.
  • Read someone else's CSS

    Beautify a minified file from a site or a plugin to find the rule you need to override.
  • Private

    Compression and formatting run inside the extension tab with bundled libraries. Your CSS is never uploaded.

Screenshots

Compressed with stats
Beautify in dark theme

FAQ

  • Will minifying change how my site looks?

    No. CSSO only rewrites CSS into a shorter form with the same meaning, such as #ffffff to #fff or bold to 700. Keep the original file so you can edit it later.

  • What happens with invalid CSS?

    CSSO is forgiving: it closes missing braces and drops declarations it cannot read, such as color red, instead of stopping. Compare the output if a rule seems to be missing. An error message appears only if the input cannot be parsed at all.

  • Is there a popup?

    No. Clicking the toolbar icon opens the editor in a new tab, which gives the two panels the full window.

  • Does it upload my CSS?

    No. CSSO and the formatter are bundled with the extension and run in the editor tab. Nothing is sent over the network.

  • Which browsers are supported?

    Chrome, Edge, Brave, Opera, Vivaldi and other Chromium-based browsers.

  • Is it free?

    Yes. CSS Compressor is free, with no account and no ads.