CSS Formatter

Format CSS blocks using a tokenizer that protects strings and functions.

CSS Formatter workspace

Up to 200,000 input characters, depth 40 and 20,000 JSON nodes. Processing stays on this device; no input is stored. Use an example to inspect the accepted input structure.

Enter input or use the example.

How to use CSS Formatter

Paste a complete stylesheet containing rule blocks. Inspect the output as text.

Supported workflow and acceptance requirements

Token-aware CSS whitespace normalization with quoted URLs, comments, custom properties and calc() preservation; reject malformed CSS.

Limits and local processing

Supports grouping rules, ordinary declarations, strings and calc(). Nested style rules, brace-valued custom properties and standalone at-rules are unsupported. It checks structure rather than every CSS property grammar. Input is processed on this device without uploads. Browser workers and Web Crypto are required for the applicable tools; clipboard access depends on browser support.

Related tools