CSS Formatter

Developer Tools

Beautify or minify CSS stylesheets

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB

Similar tools you may like

History

All history →

CSS Formatter — at a glance

Format messy CSS into clean, indented rules with one property per line, or minify it to a compact single line.

Your input
a{color:red;margin:0}
Run
Result
a {
color:red;
margin:0;
}

How to use it — step by step

CSS rules — a snippet or a whole stylesheet.

1

Paste your input

Paste or type your content into the big input box. Try a sample if you want to see it work.

2

Choose options

Pick the mode and options that fit what you need.

3

Format CSS

Press the button. The result is created instantly on your device.

4

Copy the result

Check the output and press Copy to use it anywhere.

Pro tips

Small things that make the result better.

✦Minify CSS before publishing to speed up your site.
✦Beautify copied CSS so you can read and edit it.
✦Keep your original file — minified CSS is hard to edit.

Quick facts

Freeno signup, no limit
Instantresult in a moment
Privatenothing is uploaded
Any devicephone, tablet or PC

Frequently Asked Questions

Does it handle media queries?+

Yes. Nested blocks such as @media are indented correctly.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

More Free Tools