JSON Formatter
JSON Formatter for developers — instant, offline-style and privacy-safe.
Beautify minified or cramped CSS — one declaration per line, braces and blank lines tidied — right in your browser. A fast regex tidier, not a full parser.
Your browser is preparing the tool. It runs 100% locally.
Paste minified or cramped CSS and the tool lays it out cleanly: the opening brace on the selector line, each declaration on its own indented line, the closing brace on its own line, and a blank line between rules. It is a lightweight regex tidier — it does not parse the CSS — so it does not validate the code or add a space after each colon. It runs entirely in your browser; nothing is uploaded.
This tool takes CSS that has been minified or jammed together and reformats it into the conventional, readable layout: selector and opening brace, then one property-and-value per line indented two spaces, then the closing brace, with rules separated by a blank line.
It is the quick way to make a compressed stylesheet legible — to inspect what a build tool produced, read a copied rule, or tidy a snippet before pasting it into your project.
The tool runs a series of regular expressions over the text. It puts a space and a line break around each opening brace, a line break after every semicolon, and the closing brace on its own line followed by a blank line. Declarations end up indented two spaces.
Because it works purely on the braces, semicolons and surrounding whitespace, it is fast and needs no dependencies. It is not a CSS parser, though: it does not understand selectors, properties or values, so it cannot validate the code or reason about structure beyond those punctuation marks.
selector + opening brace → same line, then a line break
after every semicolon → a new line
closing brace → its own line, then a blank line
declarations → indented two spacesBefore: body{margin:0;padding:10px}
After:
body { margin:0; padding:10px
}It breaks lines around the punctuation but does not add a space after the colon, so margin:0 stays as-is. It also indents every declaration exactly two spaces, so nested at-rules like a media query are not indented an extra level.
Your CSS never leaves your device. It is reformatted in your browser with no network request, so nothing is uploaded.
Because the work is local, you can tidy proprietary or unreleased styles without them being stored or sent anywhere.
Nothing persists between sessions — close the tab and the input and output are gone.
It produces the conventional layout for ordinary rules, but it is a regex tidier, not a parser. It does not validate the CSS or check that braces balance — it only reflows around the punctuation, so malformed input yields malformed output.
It does not add a space after the colon in a declaration, so a property reads as margin:0 rather than margin: 0. The value is correct; only the cosmetic spacing differs from what a full formatter would produce.
At-rules are not nested. Because every declaration is indented exactly two spaces, the rules inside a media query or supports block sit at the same indent as a top-level declaration rather than one level deeper.
A semicolon or brace inside a string or a comment can trigger an unwanted line break, since the tool reacts to those characters without understanding that they are quoted or commented out. A parser would ignore them.
Expand a compressed stylesheet into readable rules.
Clean up a copied rule before adding it to your project.
See what a bundler produced in a legible layout.
Present CSS clearly in documentation.
For a parser-based reformat that validates and nests correctly, use Prettier or stylelint in your editor. This tool is for a quick in-browser tidy of a snippet, not production linting.
Re-indents with a regex that breaks around braces and semicolons; honest that it does not parse the CSS, so it does not validate, add a space after the colon, or nest at-rules deeper.
JSON Formatter for developers — instant, offline-style and privacy-safe.
JSON Validator for developers — instant, offline-style and privacy-safe.
Base64 Encoder for developers — instant, offline-style and privacy-safe.
Fast, free Hash Generator that runs entirely client-side in your browser.
Fast, free UUID Generator that runs entirely client-side in your browser.
Fast, free CSS Minifier that runs entirely client-side in your browser.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.