CSS Minifier
Minify CSS for production with csso: remove whitespace and comments, shorten colours and values, and merge rules, with before/after and gzip sizes.
Open toolBeautify CSS with consistent indentation, one selector per line and blank lines between rules, after checking for unbalanced braces.
Paste minified or messy CSS and get it back with every declaration on its own line, nested @media and @supports blocks indented, and selectors in a list split onto separate lines. Choose 2 spaces, 4 spaces or tabs, and whether to leave a blank line between rules.
Before formatting, the CSS is checked for the mistakes that silently break stylesheets: braces, brackets or parentheses that don’t match, strings that are never closed, and comments without a closing */. If one is found you get its line and column instead of reformatted output that hides the problem. Comments, custom properties and values are kept exactly as written. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
CSS, Minified CSS
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste your CSS.
Pick the indentation and layout options.
Fix any reported error, then copy or download the formatted CSS.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Pick the indentation and layout options.
Fix any reported error, then copy or download the formatted CSS.
Minify CSS for production with csso: remove whitespace and comments, shorten colours and values, and merge rules, with before/after and gzip sizes.
Open toolBeautify HTML with configurable indentation, line wrapping and attribute layout, without ever rendering or running it.
Open toolBeautify minified or messy JavaScript with configurable indentation and brace style, plus a syntax check that parses the code without running it.
Open toolPretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.
Open tool