Formatters
CSS Formatter
Paste CSS and get it indented with one declaration per line. Choose two spaces, four spaces or tabs. Runs in your browser.
Paste CSS and get it indented with one declaration per line. Choose two spaces, four spaces or tabs. Runs in your browser.
A CSS formatter adds line breaks and indentation so stylesheets are easy to read, review and edit.
Paste minified or messy CSS, choose an indent style and copy the result.
.a{color:red}
.a {
color: red;
}
No. Only whitespace changes. Rules, values and order stay the same.
Yes. Comments are kept on their own line.
Content inside parentheses and quotes is left as written, so url(data:...;base64,...) stays intact.
It handles plain CSS and simple nesting. Complex preprocessor syntax is not guaranteed.
No. Everything runs in your browser.