Free online CSS minifier and beautifier. Minify CSS to reduce file size or beautify compressed CSS for readability. Instant results in your browser. Developer utilities built for web developers, software engineers, and programmers. TekPulse's CSS Minifier is completely free — no signup, no ads in results, and no data stored on our servers.
Strip comments → collapse whitespace around { } ; : , > ~ + → collapse runs of whitespace → drop trailing semicolon before }
Minification here is a sequence of regex-based text transforms rather than a full CSS parse: comments (/* ... */) are removed, whitespace immediately around structural characters is collapsed to nothing, remaining runs of whitespace are collapsed to a single space, and a semicolon directly before a closing brace is dropped since it's redundant. This shrinks file size without changing what the CSS does, because none of it touches selector or property values themselves.
Example: ".box {\n color: #1a56db;\n margin: 0 auto;\n}" → ".box{color:#1a56db;margin:0 auto}" — same rendering, smaller payload.
Help others discover this free tool. Share it or embed it on your website.
Free to embed with attribution link to tekpulse.in
Was this tool helpful?