Toffeekit
  • Home
  • All tools513
  • Recent
  • Favorites
Categories
  • Images51
  • Video21
  • PDF33
  • AI24
  • Data21
  • SEO12
  • Developer32
  • Text27
  • Design18
  • Files13
  • Utilities5
  • Productivity17
  • Finance26
  • Math39
  • Education19
  • Date & Time29
  • Converters43
  • Fun & Random24
  • SaaS13
  • Business17
  • Social11
  • Media5
  • Security13
Buy me a coffee
ToffeekitDeveloperCSS Formatter

CSS Formatter

Beautify or minify CSS, including media queries. Runs entirely in your browser — nothing is uploaded.

Help
Runs locally Instant, no sign-up Works offline
How it works

How to use CSS Formatter

  1. 01Paste your CSS into the CSS box, or click Sample.
  2. 02Pick Beautify to expand it or Minify to compress it.
  3. 03When beautifying, choose an indent of 2 spaces, 4 spaces or Tab, and One selector per line.
  4. 04Click Copy or Save to download styles.css or styles.min.css.
Questions

CSS Formatter FAQ

6 answers to what people ask most about the CSS Formatter.

How do I beautify minified CSS?

Paste the minified code with Mode on Beautify. Each rule, declaration and nested at-rule is put on its own line and indented.

How do I minify CSS?

Switch Mode to Minify. Whitespace and comments are removed and the output is saved as styles.min.css.

Does it handle media queries and keyframes?

Yes. Contents of @media, @supports and @keyframes are indented correctly.

Will minifying break my CSS?

It should not. Only whitespace and comments are removed, and values like url(data:...) and quoted strings are left alone.

How do I keep a licence comment when minifying?

Leave Keep /*! licence */ comments on. Comments that start with /*! are retained, and other comments are removed.

Is CSS Formatter free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

Something not working? Tell us and we'll fix it.

Report an issue
More tools
JSON Formatter

Format, minify and validate JSON with clear errors.

Developer
Base64 Encode / Decode

Encode text to Base64 or decode it back, UTF-8 safe.

Developer
URL Encode / Decode

Percent-encode query values or whole URLs.

Developer
HTML Entities

Escape < > & and quotes, or decode entities.

Developer
Something off with CSS Formatter? Report an issue or ask for a feature.Send feedback
© 2026 Toffeekit/Runs locally · No uploads · Free
AboutContactFeedbackPrivacyTermsCookiesSettingsllms.txt