CSS Minifier

Use on styles you already test. Keep readable source and verify the component in the browser after replacing the shipped asset.

Input

Result

Run the tool to see your result here.

When to use it

Use on styles you already test. Keep readable source and verify the component in the browser after replacing the shipped asset.

Try a worked example

Choose Load sample to fill the controls. Select Run tool and compare the result.

Compare bytes for a declaration block before and after minification.

/* Article card */
.card { color: #ffffff; padding: 8px 8px 8px 8px; }
Input: 70 bytes. Output: 30 bytes.
.card{color:#fff;padding:8px}

How it works

Parse and minify with esbuild WebAssembly in this browser. Report exact UTF-8 byte counts.

Check the result in your workflow

Test an isolated stylesheet containing a color, a shorthand candidate and a rule order you can inspect. Confirm the output bytes in the Lab. Compare computed styles on a test element and keep the readable stylesheet in version control.

Limits and checks

This is a transform, not bundling or gzip. Preserve any license notices required for distributed code.

Your input stays in the browser

The tool keeps these inputs in the page while you work and does not send them to a conversion service.

Related tools and guides

Website Performance

JavaScript Minifier

Minify a copy and retain your original source for maintenance. Run the application tests against the file you will deploy.

Website Performance

Bandwidth Calculator

Use transfer bytes from a representative navigation, then run separate cold-cache and repeat-visit scenarios.

Website Performance

Image Resizer

Prepare screenshots at the display width, and keep a larger master for another layout.

Search ByeGA4