Minify CSS by stripping comments, collapsing whitespace and removing unnecessary semicolons. Reduces file size for faster page loads.
No output yetA CSS minifier compresses your stylesheet code by removing all characters that are not required for the browser to correctly parse and apply your styles. This includes stripping CSS comments (/* */), collapsing multiple whitespace characters into zero, removing spaces around selectors, colons, and semicolons, and eliminating the trailing semicolon before each closing brace. The result is the most compact valid CSS representation of your stylesheet, which loads faster and consumes less bandwidth. CSS file size directly impacts render-blocking time — browsers must download and parse all CSS before painting the first pixel of your page. Reducing CSS payload improves First Contentful Paint (FCP) and Largest Contentful Paint (LCP), two Core Web Vitals that affect both user experience and Google search rankings. This tool shows you the exact before-and-after character count and percentage savings so you can quantify the optimization. All minification runs in your browser using JavaScript string operations, so your CSS never leaves your machine. It handles standard CSS including complex selectors, media queries, custom properties, keyframe animations, and vendor-prefixed properties.
Copy your stylesheet from your code editor, build output, or browser DevTools and paste it into the input area. The tool accepts any valid CSS including media queries, animations, and custom properties.
The tool instantly displays the original character count, the minified count, and the percentage reduction. Typical stylesheets with comments and indentation see 20-40% savings.
Click Copy to place the compressed CSS on your clipboard. Use it in your production build, inline in HTML, or deploy it to your CDN for the fastest possible stylesheet delivery.
Pretty-print and validate JSON with 2 / 4 space indentation.
Convert JSON arrays to CSV format. Auto-detects columns, proper escaping, download as .csv.
Convert CSV data to a JSON array of objects. Handles quoted fields and commas.
Beautify messy HTML with proper indentation or minify it for production.
Minify HTML by stripping comments, collapsing whitespace. Shows size savings.
Beautify CSS with proper indentation or minify it for production. Strips comments.