CalcBrew

JSON Formatter & Validator

Paste JSON and get it pretty-printed instantly, with a clear verdict: valid, or invalid with the line and column of the first error. Switch to minified output for production, sort keys for clean diffs, and see how deep and how big the document is. Nothing is uploaded.
Indent:
Share:

JSON in 30 seconds

JSON (JavaScript Object Notation, RFC 8259) has six value types: objects { }, arrays [ ], strings in double quotes, numbers, true/falseand null. Keys are always strings. There are no comments, no trailing commas, no single quotes and no undefined — which is exactly what trips people up when they paste JavaScript.

{ name: 'Ada', tags: ['x',], } ✗ unquoted key, single quotes, trailing commas

{ "name": "Ada", "tags": ["x"] }

Formatting never changes meaning: the minified and the 4-space versions of a document parse to the same value. Numbers are kept exactly as JavaScript represents them, so integers above 2⁵³ (large IDs) may lose precision — store those as strings.

Frequently asked questions

Related tools

More in Developer Tools · All tools & games