CSS Minifier

Minify or prettify CSS code for production and maintenance workflows.

Tool Panel

Loading tool...
About CSS Minifier

Strip CSS comments and whitespace, or format with 4-space indentation. Everything runs locally in your browser.

  • 1

    Removes /* */ comments, collapses runs of whitespace, strips spaces around {}:;,>~+ and folds `;}` into `}`.

  • 2

    No value-level optimisation: #ffffff is not shortened to #fff, 0px is not reduced to 0, and margin is never collapsed to shorthand — that needs CSS semantics.

  • 3

    Every comment goes, including /*! ... */ blocks conventionally kept for licensing; extract those by hand first if they matter.

Related tools

View all
HTML Formatter
Format & Minify

HTML Formatter

Auto-indent and organize HTML markup for better readability.

Format & Minify
HTML Minifier
Format & Minify

HTML Minifier

Minify HTML by removing extra spaces and non-essential characters.

Format & Minify
JavaScript Formatter
Format & Minify

JavaScript Formatter

Beautify JavaScript code with consistent indentation and spacing.

Format & Minify
JavaScript Minifier
Format & Minify

JavaScript Minifier

Minify JavaScript to reduce file size for faster page delivery.

Format & Minify
JSON Formatter
Format & Minify

JSON Formatter

Format, validate, and beautify JSON for easier reading and debugging.

Format & Minify
JSON Minifier
Format & Minify

JSON Minifier

Compress JSON by removing unnecessary whitespace and line breaks.

Format & Minify