Skip to main content
{/}codefunc
Minifiers & TextRuns locally

CSS Minifier

Minify CSS stylesheets for production.

About this tool

Minify CSS stylesheets for production. Quick payload size checks, text cleanup, and deploy prep during development.

Paste a stylesheet or CSS module contents. Minify to remove comments and unnecessary whitespace. Example — Simple rule compression: try `body { color: red; }` and expect something like `body{color:red}`.

Does not rewrite longhand properties, merge selectors, or purge unused rules. See also: CSS Formatter, and HTML Minifier. Runs in your browser — nothing you paste gets uploaded.

How to use

  1. Paste a stylesheet or CSS module contents.
  2. Minify to remove comments and unnecessary whitespace.
  3. Copy the compact CSS into production bundles or style tags.
  4. Prefer your bundler’s pipeline for multi-file apps; use this for quick one-offs.

Example

Simple rule compression

Input

body { color: red; }

Output

body{color:red}

Limitations

  • Does not rewrite longhand properties, merge selectors, or purge unused rules.
  • Calc expressions and weird hacks are left intact — verify visual output after minify.
  • Source maps are not generated.

Related tools

2

Frequently asked questions

What does the CSS Minifier do?

Minify CSS stylesheets for production. Runs in your browser — no install, no account.

How do I use the CSS Minifier?

Paste a stylesheet or CSS module contents. Minify to remove comments and unnecessary whitespace. Copy the compact CSS into production bundles or style tags. Prefer your bundler’s pipeline for multi-file apps; use this for quick one-offs.

Is the CSS Minifier free?

Yes. No signup, no usage limits, no paywall.

Does the CSS Minifier upload my data?

No. Processing happens locally in JavaScript. Your input is not uploaded, stored, or logged.

What are the limitations of the CSS Minifier?

Does not rewrite longhand properties, merge selectors, or purge unused rules. Calc expressions and weird hacks are left intact — verify visual output after minify. Source maps are not generated.

Search tools

Find a developer tool