CSS Formatter
Beautify CSS with consistent indentation using Prettier.
How it works
- 1Paste your CSS.
- 2Choose 2 or 4 spaces.
- 3Copy or download the formatted code.
Features
- Prettier, the formatter most projects use.
- 2 or 4 space indentation.
- Syntax errors reported with the position.
- Private: runs in your browser.
Frequently asked questions
Which rules does it use?
Prettier's defaults with a 100-character line width.
Does it change what the code does?
No. Only layout changes.
Is my data sent anywhere?
No. Everything runs in your browser; nothing is uploaded.