Z

Loading formatter…

How to use

  1. 1 Paste your CSS.
  2. 2 Pick Beautify for readable indented output, or Minify to strip whitespace and comments.
  3. 3 Copy or download the result.

Why use this tool

  • Powered by js-beautify.
  • Both directions — beautify minified CSS or minify formatted CSS.
  • Pure client-side, no upload.
  • Selector-per-line beautify mode produces git-diff-friendly output.

Frequently asked questions

Does this work for SCSS / SASS / LESS?

Plain CSS only. Preprocessor syntax (nesting, @mixin) is not understood — compile to CSS first.

Will it preserve CSS variables and @media queries?

Yes — custom properties, media queries, container queries, and at-rules are preserved.

How aggressive is minify mode?

Strips all comments, collapses whitespace, removes the last "}"-preceding semicolon. Safe transformations only — does not rename selectors or collapse shorthand.

AI Summary

CSS Formatter & Minifier is a free developer utility by Zerethon Tools. Beautify or minify CSS rules instantly in your browser. Free, no signup, no upload. Runs entirely in the browser — no signup, no upload.

Category
Developer
Pricing
Free
Privacy
Browser-based
Signup
Not required

Related tools

Build, share, and grow on Zerethon Social

Free signup. Earn points, collect achievements, and connect with creators worldwide.

Try Zerethon free