CSS Formatter
Beautify CSS with consistent indentation, one selector per line and blank lines between rules, after checking for unbalanced braces.
Open toolMinify CSS for production with csso: remove whitespace and comments, shorten colours and values, and merge rules, with before/after and gzip sizes.
Uses csso, a well-tested structural CSS optimiser, to remove whitespace and comments, shorten colours (#ff0000 → red), drop redundant units (0px → 0) and, optionally, merge rules that share declarations. Licence comments that start with /*! are kept unless you turn that off. The original and minified sizes are shown, together with the approximate gzipped size, which is closer to what visitors actually download.
Rule merging is safe for normal stylesheets; turn it off if you rely on unusual cascade order between rules. Unbalanced braces or unclosed strings are reported with their position instead of being minified into broken CSS. Everything runs in your browser. Your data is never uploaded, logged or stored.
Your code or text
CSS
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Paste your CSS.
Choose whether to merge rules and keep licence comments.
Check the savings, then copy or download the minified 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.
Choose whether to merge rules and keep licence comments.
Check the savings, then copy or download the minified CSS.
Beautify CSS with consistent indentation, one selector per line and blank lines between rules, after checking for unbalanced braces.
Open toolMinify JavaScript with terser: compress, shorten local names and keep licence comments, with exact syntax errors and size savings.
Open toolShrink HTML safely: remove comments and collapse whitespace while leaving pre, textarea, script and style contents untouched.
Open toolBuild CSS grid layouts with track sizes, gaps and named template areas, previewed live.
Open tool