Format CSS

Format CSS with two-space indentation after parsing it.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Paste your source, choose the supported options, then process. Inspect or download the complete result.

Limits and behavior

CSS syntax parsing is not a compatibility or rendering validator. Vendor-specific constructs follow css-tree parsing support. Maximum total input 1 MB, output 3 MB, JSON nesting 64 levels. Processing stays in your browser worker. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

Beautify CSS source code

Reformat supported CSS rules to improve readability when editing styles and debugging selectors.

Does CSS formatting change computed browser styles?

It is intended to preserve parsed CSS behavior; always check complex stylesheets and vendor-specific syntax.

Related tools: minify css · format html

Built on Hatchable