JSON Formatter
Validate, beautify and minify JSON with precise error messages.
In
Out
{
"site": "Sumly",
"domains": 12,
"tools": {
"live": 119,
"roadmap": 119
},
"tags": [
"seo",
"finance",
"developer"
],
"pricing": {
"price": 0,
"currency": "USD"
}
}How JSON Formatter works
Validation runs the browser's native JSON.parse — the same parser your code will use — so a green badge here means valid everywhere. Errors quote position and cause.
Beautify re-serialises at your chosen indent (2 or 4 spaces) with keys preserved in insertion order, so reading order survives formatting.
Minify strips all insignificant whitespace into one compact line — the form you ship in configs, responses and storage. The char counts show exactly what compression bought.
Worked example
A one-line config with 214 characters beautifies to 11 readable lines at 2 spaces (389 chars) and stays 214 minified. The key count (7) confirms nothing was lost in either direction.
The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.
Frequently asked questions
Related tools
Test patterns against live text with matches and groups listed.
Encode and decode Base64 safely — UTF-8 correct, URL-safe optional.
Percent-encode parameters or whole URLs — and decode them back.
Generate RFC 4122 v4 UUIDs in bulk, with formatting options.
SHA-256, SHA-384, SHA-512 and SHA-1 digests, computed locally.
Decode, inspect claims, and check expiration on JSON Web Tokens locally.
- json
- formatter
- validator
- beautify
- minify
- developer