CSS Formatter & Minifier
Put each declaration on its own line, or collapse a stylesheet to one — without turning a:hover into a: hover.
Input
Output
A re-indenter, not a compiler
This restructures whitespace and nothing else. It does not rename anything, reorder statements, add semicolons or rewrite syntax — which means it can be applied to code you do not fully understand without changing what it does.
Strings, template literals and comments are tokenized before any indentation happens, so a brace inside a string or a `//` inside a URL cannot shift the structure. That single property is what separates this from a regex that appears to work until it does not.
Reading minified code
The common use is the other direction: pasting one long line from a bundle and getting something you can follow. Names stay mangled — recovering those needs a source map — but the control flow becomes visible.
Frequently asked questions
Is this as good as Prettier?
No, and it is not trying to be. Prettier parses the language into an AST and prints it from scratch; that is a few hundred kilobytes per language. This reindents by structure, which is enough to read code and not enough to enforce a style guide.
Can it un-minify a bundle?
It restores the line structure, which usually makes the logic followable. Variable names were replaced during minification and cannot be recovered without the original source map.
Will minifying break my code?
The minifier removes comments and collapses whitespace. It does not do the semantic transformations a real minifier does, so it is safe but far less effective — use a build tool for production output.