CSS Formatter & Minifier

Format, beautify, and minify CSS in your browser. Configure indentation, remove comments, and compare original vs minified size. No upload, no size limit.

How it works

What minification removes

Minification targets non-functional whitespace: spaces after colons and semicolons, all newlines, trailing optional semicolons, and unit zeros (0px becomes 0). Comments are stripped — both block `/* */` and `//` pseudo-comments that some preprocessors emit. It does not rename classes, remove unused rules, or inline values; those require a build-toolchain optimizer like csso, cssnano, or lightningcss.

Formatting options

The formatter respects browser-native CSS parsing via a lightweight state machine: it handles `@media`, `@keyframes`, `:root`, and nested at-rules, and preserves the structural intent of the original stylesheet. Select 2 or 4 spaces, or tabs, from the dropdown. The output always round-trips correctly — formatting a minified sheet and minifying the result gives the same output.

Next steps

Frequently Asked Questions

How do I minify CSS?
Paste your CSS into the input and click Minify. Whitespace, newlines, and optional semicolons are stripped, and comments are removed. The minified output appears in the right panel with a byte-count comparison.
How do I beautify CSS?
Click Format to pretty-print the input with configurable indentation (2 or 4 spaces, or tabs). The formatted output appears in the right panel and is ready to copy.
Is my data sent to a server?
No. Every tool on jsonversal runs entirely in your browser using the Web Crypto API, File API, and Clipboard API. Nothing is ever uploaded — not even the JSON you paste in.
Do I need an account or API key?
No signup, no email, no API key. All tools are free to use with no signup required.
Can I use these tools offline?
Yes. Once the page loads, all tools work offline. There are no external API calls or CDN dependencies at runtime.
🔒
Your data never leaves your device

All processing happens in your browser. No uploads, no tracking, no servers. Your API keys, configs, and private payloads stay private — 100% client-side.

esc
↑↓ navigate ↵ open esc close