uencoder

CSS Formatter

Beautify or minify CSS online. Expand rules with indented properties or compress to a single line. Free, private, and 100% client-side.

Local only

Recent history

No history yet

How to use

  1. Paste CSS into the input box.
  2. Choose Beautify or Minify mode.
  3. Copy or download the formatted result.

Frequently asked questions

Are CSS comments preserved?
Comments are removed during both beautify and minify to produce clean output. Keep your source comments in your original files.
How does minify handle selectors?
Commas between selectors are compacted (a, b to a,b) and the last semicolon before } is removed for maximum compression.

Related tools