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
- Paste CSS into the input box.
- Choose Beautify or Minify mode.
- 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
JSON Formatter Format, minify, or sort JSON online. Free, private, and 100% client-side. SQL Formatter Beautify or minify SQL queries online. Uppercase keywords, indent clauses, or compress to a single line. Free, private, and 100% client-side. HTML Entity Encoder Encode text to HTML entities online. Free, private, and 100% client-side.