Beautify or minify CSS, including media queries. Runs entirely in your browser — nothing is uploaded.
6 answers to what people ask most about the CSS Formatter.
Paste the minified code with Mode on Beautify. Each rule, declaration and nested at-rule is put on its own line and indented.
Switch Mode to Minify. Whitespace and comments are removed and the output is saved as styles.min.css.
Yes. Contents of @media, @supports and @keyframes are indented correctly.
It should not. Only whitespace and comments are removed, and values like url(data:...) and quoted strings are left alone.
Leave Keep /*! licence */ comments on. Comments that start with /*! are retained, and other comments are removed.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue