Small ToolsAll tools
← All tools / Frontend
Frontend utility

CSS Minifier

Remove comments and formatting whitespace from CSS.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…

How to use CSS Minifier

  1. Paste CSS into the input.
  2. Select Minify to remove formatting whitespace and ordinary comments.
  3. Review the compact output before using it in production.

Example

Input:

.card {
  color: #333;
  padding: 1rem;
}

Output:

.card{color: #333;padding: 1rem}

Use cases

About this tool

Remove comments and formatting whitespace from CSS. Processing happens locally in your browser, so your input is not sent to a server or included in analytics.

Frequently asked questions

Does this run a full CSS parser?

No. It performs lightweight token-based formatting and does not validate every CSS grammar feature.

Are license comments kept?

Comments beginning with /*! are preserved.

Is CSS uploaded?

No. Processing happens locally in your browser.

Related tools