Skip to content
ToolDeck
Developer & Data

CSS Minifier

Shrink a stylesheet and see exactly how many bytes you saved.

Runs in your browser100% privateNo uploads
Loading tool…

Share this tool

Send it to someone who needs it.

Xfin
Read the full guide

About the CSS Minifier

Paste CSS to strip comments, collapse whitespace and remove spaces around punctuation. The tool reports before and after sizes so you can judge the benefit.

How to use it

  1. 1Paste the CSSOrder and selectors are preserved.
  2. 2MinifyComments and insignificant whitespace are removed.
  3. 3Copy or compareCheck the byte saving before deploying.

Why use this css minifier?

  • Nothing leaves your device. The work happens in your browser tab. There is no upload endpoint in this app, so your files and text cannot be stored, logged or seen by us.
  • No upload wait. You skip the round trip to a server entirely. Results are limited by your own CPU, not by network speed or queue size.
  • Free, no account, no quotas. No sign-up wall, no watermark, no daily limit. Optional accounts only exist to save favourites and presets across devices.

Frequently asked questions

Is my stylesheet safe to use here?

Yes. This tool runs entirely in your browser using JavaScript. Nothing you paste or open is sent to a server, and the page keeps no copy after you close it.

Do I need to create an account?

No. Every tool is fully usable without signing in. An account only adds saved favourites and reusable presets.

Does it work on a phone?

Yes. The interface is mobile-first with large touch targets and a stacked layout, so it works on phones and tablets as well as desktops.

Is minified CSS safe?

The transformations are conservative: comments and extra whitespace only. Test the result; unusual syntax or string concatenation may behave differently.

Does it remove unused rules?

No. It cannot know which selectors your HTML uses. Use a build tool with purge or tree-shaking for that.

More free utilities from the same corner of the toolbox.