CSS Beautify automatically formats your style to be consistent and easy to read
- Only one blank line between two rulesets
- Closed curly brace is at its own line
- There is no empty line between declarations inside a ruleset
- No space between the property name and colon
- One space between colon and the property value
- Comments are preserved
For a command-line use, install Node.js cssbeautify package.
Type any unformatted CSS:
Beautified CSS: