---
title: "CSS Minifier - Compress CSS Online"
description: "Free CSS minifier to compress stylesheets online. Remove comments and extra whitespace, measure bytes saved, then copy or download locally."
url: https://candoya.com/tools/css-minifier/
locale: en
type: browser-tool
---

# Free CSS Minifier

Category: [Developer](https://candoya.com/tools/dev/)

## What does a CSS minifier do?

A CSS minifier compresses a stylesheet by removing comments, line breaks, extra spaces and final semicolons that browsers do not need. The result uses fewer bytes while keeping selectors, declarations, strings and calculations intact. This tool works locally in your browser and reports the exact UTF-8 size saved.

**Use minification for production output, not your editable source.** Keep the readable stylesheet in version control, then copy or download the compact result when you need a quick build-free handoff. Your CSS stays in this tab and is never uploaded.

## How to use it

1. **Paste your stylesheet** - Enter CSS in the left editor or load the example to see a complete result.
2. **Choose comment handling** - Keep the license option on to preserve comments that begin with /*! while ordinary comments are removed.
3. **Check the savings** - Read the input and output byte totals, percentage saved and comment count below the editors.
4. **Copy or download** - Copy the minified text or download it as styles.min.css for your project.

## Who it's for

- **Static site authors** can shrink a small stylesheet without adding a build pipeline.
- **Email developers** can compact embedded CSS before placing it in a size-sensitive template.
- **Frontend developers** can test how much formatting and comments contribute to a stylesheet's byte count.
- **CMS maintainers** can prepare compact CSS snippets for theme or custom-code fields.

## Expert note

Whitespace around the + and - operators inside calc() is required by CSS grammar, so this minifier preserves it instead of applying unsafe global whitespace replacements. It also leaves strings, data URLs and CSS escapes untouched.

## Frequently asked questions

### Is my CSS uploaded?

No. The CSS minifier runs entirely in your browser. The stylesheet, minified result and byte counts stay on your device, so you can work with unreleased theme code or private project styles without sending them to a conversion server.

### Is this CSS minifier free?

Yes. You can minify CSS, copy the result and download the compact stylesheet without creating an account or paying for a plan. Processing is local, so there is no server queue or per-run charge.

### How much CSS can I minify?

There is no fixed character limit in the tool. Very large stylesheets still depend on your browser and device memory, but ordinary site, theme and email stylesheets process immediately because the minifier performs one linear pass through the text.

### Does CSS minification change how a page looks?

It should not. This tool removes formatting and comments while preserving significant spaces, selector relationships, quoted strings, data URLs, escapes and calc() operators. It does not reorder declarations, merge rules or change the cascade. Review the result in your project before replacing production CSS.

### Are CSS license comments preserved?

Comments beginning with /*! are kept by default because projects often use that convention for licenses and attribution. Turn off the option when you are allowed to remove them. Normal /* comments */ are removed in either mode.

### Can I restore the original formatting later?

A CSS formatter can add indentation and line breaks to minified CSS, but it cannot recover removed comments or the exact original spacing. Keep the readable source in version control and treat the minified file as generated output.

## Related tools

- [CSS Formatter](https://candoya.com/tools/css-formatter/)
- [HTML Minifier](https://candoya.com/tools/html-minifier/)
- [JSON Minifier](https://candoya.com/tools/json-minifier/)
- [HTML Formatter](https://candoya.com/tools/html-formatter/)
- [LESS to CSS](https://candoya.com/tools/less-to-css/)

---

*Markdown edition of <https://candoya.com/tools/css-minifier/>, published for AI agents and other automated readers. Index of key pages: <https://candoya.com/llms.txt>.*
