Comprehensive CSS formatter with customizable rules: indent size, 2 spaces, 4 spaces or tabs, optional A to Z property sorting and comment stripping. Configure once, format any CSS to match your team's style guide.
When to use this
Use to: standardize CSS across a team / codebase, enforce house style guide on legacy code, format CSS pasted from external sources to match your repo style, generate consistently-formatted CSS for documentation / blog posts.
Frequently Asked Questions
Can it match Prettier's CSS style?
Yes - the default settings closely match Prettier's CSS output (2-space indent, no sort, brace on same line). For Stylelint-style alphabetical sort, toggle 'Sort properties: alphabetical'.
Powered by CSS Beautifier & Formatter.