JSON Formatter
Pretty-print messy or minified JSON with 2-space indents.
Beautify minified or cramped CSS into one declaration per line, with braces and blank lines tidied. It is a 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. Your browser does the work, so 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.
Use it to make a compressed stylesheet readable: 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 carries over between visits. 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. It does not parse the CSS, so it does not validate, add a space after the colon or nest at-rules deeper.
Pretty-print messy or minified JSON with 2-space indents.
Paste JSON and find out whether it parses.
Standard Base64 for any text, emoji included.
MD5, SHA-1 and the SHA-2 hashes of any text, as you type.
Up to 500 random version 4 UUIDs at once.
Strips comments and whitespace to put a stylesheet on one line.
Paste, run and copy. The code stays in your browser and you don't need an account.