CSS Minifier & Formatter

Minify or pretty-print your CSS instantly. Free, no install required.

How does it work?

A minified CSS file is smaller and loads faster: comments, line breaks and unnecessary whitespace are removed. It can also be pretty-printed for readability.

Paste your stylesheet, choose minify or format and copy the result. The byte counter shows how much you save (or add) compared to what you pasted.

Frequently asked questions

Is it safe to minify my file?

Yes: only comments and whitespace between syntax characters that are not needed are removed. Strings (url(...), quoted content) are kept intact.

What is the difference between minifying and formatting?

Minifying compacts the code for production. Formatting (beautify) indents and separates rules so you can read and edit it comfortably.

Is the savings automatic?

The counter shows the bytes that changed compared to your pasted text. Real savings also depend on Gzip compression, but a minified baseline always helps.

Related tools