Mello
{} Developer

CSS Formatter & Minifier

Format CSS with consistent indentation or strip it down for production.

Runs in your browserNo account requiredNo uploadFree
Loading tool…

About CSS Formatter & Minifier

CSS Formatter & Minifier reformats stylesheet code. Beautify mode rewrites CSS with one declaration per line and consistent indentation, so a stylesheet copied from a build output or a minified file becomes readable. Minify mode strips every optional space, newline, and comment to produce the smallest file for production.

Paste your CSS and choose a mode. Beautify turns .btn{color:#fff;padding:4px 8px} into a properly spaced rule with each property on its own line. Minify collapses a whole stylesheet back down to that compact form. Selectors, media queries, keyframes, custom properties (CSS variables), and vendor-prefixed properties are all handled.

The tool treats CSS as text: it re-indents and respaces, but it does not remove unused rules, merge duplicate selectors, autoprefix, or otherwise optimize beyond whitespace. Beautify keeps comments; minify drops them. Experimental or unusual syntax is passed through rather than rejected, so cutting-edge properties survive the round trip.

Formatting runs entirely in your browser — nothing is uploaded. That is handy when the stylesheet belongs to an unreleased design you would rather not send to a third-party server.

Frequently asked questions

Beautify keeps them; minify removes them. Comments add bytes with no effect on rendering, so dropping them is the usual production goal.

More developer tools

JSON Formatter & Validator
Paste JSON to format, validate, or minify — runs entirely in your browser.
{}Developer
Base64 Encoder / Decoder
Encode to Base64 or decode it back — handles UTF-8 correctly.
{}Developer
JSON ↔ CSV Converter
Convert between JSON and CSV — round-trip safe, runs locally.
{}Developer
Regex Tester
Build and test JavaScript regular expressions with live highlighting.
{}Developer
UUID / GUID Generator
Generate cryptographically random UUID v4 identifiers.
{}Developer
Number Base Converter
Convert a number between binary, octal, decimal, hex, and any base 2–36.
{}Developer