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
URL Encoder & DecoderFree URL encoder and decoder: percent-encode text for query strings (encodeURIComponent) or whole URLs…UUID GeneratorFree UUID generator: create one or hundreds of version 4 (random) or version 7 (time-ordered) UUIDs/GUIDs…Base64 Encode & Decode OnlineFree Base64 encoder and decoder: convert text to Base64 and Base64 back to text (UTF-8 safe), URL-safe…HTML Encoder & DecoderFree HTML encoder and decoder: escape < > & " ' as HTML entities so code shows as text, optionally encode…Ad Revenue CalculatorEstimate website ad income with AdSense, Ezoic, Mediavine and Raptive.BPM CounterFree BPM counter: tap the button (or your spacebar) to the beat and get the tempo in BPM i
More in Developer Tools · All tools & games