CSS Minifier

Minify CSS code to reduce file size and improve page load speed.
CSS input
Minify options
Format options
Minified result

Paste CSS on the left, then choose Minify CSS to strip comments and whitespace, or Validate to check brackets and quotes without changing your input.

Ctrl+Enter minifies from the input editor
Tool Introduction

Paste a stylesheet and shrink it before publishing assets, dropping it into a CMS, embedding email CSS, or sharing a compact snippet. The minifier strips comments and collapses whitespace while keeping strings, values like 0 0 10px, and calc() expressions intact.

Use compact mode for a single-line payload or expanded mode for one rule per line. License comments (/*! ... */) are preserved by default so credits stay in production builds, and the savings counter shows exactly how much weight you removed. Prefer readable code? The built-in formatter re-indents minified or messy styles with selectable indentation, brace style, and spacing options. The validator checks brackets, quotes, and comments without touching your input. Everything runs locally in your browser.