CSS formatter

Format or minify CSS — normalize indentation, braces, and spacing.

One declaration per line, braces and indentation added. Strings, comments, and parentheses are preserved; at-rules stay in place. Selector order and values are never changed.

CSS stays in this browser.

How to use

  1. Paste CSS.
  2. Choose pretty-print or minify.
  3. Format and copy the result.

What it supports

Rules up to 500, input up to 2 MB. Media queries and nested rules are indented; comments and strings are preserved verbatim. Not a validator — syntax errors pass through unchanged.

Related tools

Related guides