Skip to main content

CSS Formatter

Automatically format and indent CSS code for readability. Supports per-property line breaks and single-line minification.

Share this tool
📖

How to Use

Step 1

Enter CSS

Enter CSS

Enter CSS code

Step 2

Format

Format

Indentation is auto-formatted

Step 3

Copy

Copy

Copy formatted CSS

Features

Indent Settings

Indent with 2/4 spaces or tabs

Property Alignment

Line break and align per property

Minify & Beautify

Both beautify and minify supported

FAQ

Yes, remove whitespace and comments to minify.