Browser-local developer utility

CSS Formatter and Minifier

Beautify or minify CSS source locally without applying it to the page, fetching URLs, or claiming complete CSS validation.

Enter inert CSS source and select Run.

Method and example

A deterministic lexical scanner protects strings and comments while recognizing CSS punctuation. Format mode creates stable indentation; minify mode removes ordinary comments and collapses structural whitespace.

Formatting `.card{color:red}` produces a readable rule. Formatting the formatted result is byte-identical; minifying twice is also byte-identical.

Scope and limitations

This tool never applies the CSS, previews it, or fetches url() resources. It performs formatting—not complete CSS validation. Input is limited to 5 MB UTF-8.

All output remains inert text. User source is never executed in the main page or sent to a remote parser.

Related developer tools

Browse Developer Tools.