Skip to content
M2TOOLKIT

Developer · free tool

CSS Formatter & Minifier

Make CSS readable again, or shrink it for production.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Developer
  • Free
  • No sign-up
  • Runs in your browser
  • Updated
Output

Your code is formatted in the browser and never executed.

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the CSS Formatter & Minifier

  1. Paste your CSS into the left box, or open a file.
  2. Adjust the options if you need to.
  3. Copy the formatted or minified CSS or download it as a file.

What does this tool do?

Beautify puts each rule and declaration on its own line with consistent indentation. Minify strips comments and unnecessary whitespace, which typically saves 15–30%.

Why use it?

  • Inspect third-party stylesheets.
  • Clean up generated CSS.
  • Reduce file size for small sites.

Use cases

  • Read minified CSS from a live site.
  • Tidy stylesheets before code review.
  • Shrink CSS for production.

Example

.a{color:red;margin:0} becomes
.a {
  color: red;
  margin: 0
}

Common mistakes

  • Editing minified CSS by hand.
  • Minifying files you'll keep editing — keep the readable source.
  • Forgetting to enable gzip or Brotli on the server, which saves even more.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Frequently asked questions

How much does minifying CSS help?

It typically cuts 15–30% of the file size. If your server already uses GZIP or Brotli compression, the gain over the network is smaller, but minifying is still standard practice for production.

Will beautifying change how my CSS works?

No. Only whitespace, line breaks and indentation change. Selectors, properties and values stay exactly the same.

Is my CSS uploaded?

No, everything runs in your browser.

Should I minify during development?

No. Minify in your build step and work in readable files.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the css formatter & minifier.