CSS Minifier & Beautifier — free online

You finish a stylesheet and it works, but it's full of extra spaces, comments and line breaks that just make the file bigger and the page slower to load. Or the opposite: someone hands you CSS squashed into one long line and you can't read a thing. We added a free tool that handles both ways — CSS Minifier & Beautifier — right in your browser.

What it does

Paste your CSS and pick a direction. Minify strips out the comments, collapses the whitespace and tightens up the punctuation so the file comes out as small as it can be. Beautify does the reverse: it spaces everything out neatly so you can actually read and edit it again.

Nothing leaves your device

It all runs inside your browser. Your CSS is never uploaded to a server and nothing is saved anywhere. When you close the tab, it's gone.

How to use it

  1. Open CSS Minifier & Beautifier and paste your CSS into the box.
  2. Choose minify to make it smaller or beautify to make it readable.
  3. Copy the result and drop it into your project.

It's free with no limit. There are more small tools on the Apps page.

Get new posts

Soon you'll be able to drop your email and get new posts — no account, no spam.

Email sign-up isn't live yet — nothing is collected for now.