All tools Developer Tools

CSS Formatter

Beautify or minify a stylesheet.

Your details

Paste your CSS here.

100 of 100 free uses left today

Your result will appear here

Fill in the details on the left and press the button. You will see the answer right here, without the page reloading.

About this tool

Format CSS with one declaration per line and one selector per line, or minify it for production. Strings, comments, url() values and nested rules or @media blocks are handled safely, and values are never rewritten. Your text is processed for this request only and is never stored.

Frequently asked questions

Can it minify CSS?

Yes. You can beautify a stylesheet for reading or minify it to make it smaller.

Does minifying change how the page looks?

No. It removes spaces and comments only.

Does it check for errors?

It formats the CSS you give it. Use a linter for deeper checks.

Guides and tutorials

Related tools