Back to home

CSS Minifier

Paste CSS to remove unnecessary comments and spacing, shorten simple hex colors, clean zero units, and compare the size savings immediately.

Coding Waiting for result
Report issue

CodingBrowser only

Minify summary

Smaller CSS can help render start and cache efficiency. For production, still verify key layouts in real browsers.

CSS structure check

CSS structure looks valid

Original size

310 B

Minified size

227 B

Bytes saved

83 B

Savings

26.8%

Gzip estimate

73 B

Rules

2

Declarations

10

Comments removed

1

Source CSS

Paste CSS to shrink. Plain CSS, media queries, and CSS variables are supported.

Minified output

Review the minified CSS, copy it, or download a .min.css file.

. product-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;padding:20px;border:1px solid #eee;border-radius:12px;background:#fff;color:#1f2937}.product-card:hover{border-color:#fc0;transform:translateY(-2px)}

Pre-deploy checklist

  • Preserve license comments when attribution is required.
  • Compile SCSS, Less, or CSS-in-JS before minifying.
  • After minifying, verify hover states, media queries, and calc() expressions.

Simple minifier note

This tool is for quick size reduction and review. For vendor CSS or complex PostCSS output, keep your project build pipeline in the loop.

How to review minified CSS

This tool runs in the browser and does not upload your code. It preserves strings and practical expressions while reducing comments, line breaks, and safe spacing.

Usage notes

  • Regular comments are removed, while /*! ... */ license comments can be preserved.
  • Spacing around braces, colons, semicolons, and commas is reduced.
  • Saving percent = (original size - minified size) / original size x 100.

Frequently asked questions

Is my CSS uploaded?expand_more

No. Everything runs locally in the browser.

Can this minify SCSS?expand_more

It is built for CSS. Compile SCSS, Less, or CSS-in-JS first, then minify the CSS output.

Can license comments stay?expand_more

Yes. Keep the preserve option on for comments that begin with /*!.

Keep exploring

More tools to try next

Jump into related tools from the same category and popular picks across Gogotem.

View all tools arrow_forward