Beautify, minify and validate JSON instantly — with clear error locations, useful statistics and syntax highlighting. Everything runs in your browser; your data never leaves your device.
Formatted, colour-highlighted JSON will appear here.Statistics count every value in the parsed JSON: keys are object property names; strings and numbers include values inside nested objects and arrays. Booleans and nulls are counted in the walk too, even though they do not have their own tile.
Paste plain text to turn it into a safely escaped JSON string, or paste an escaped string to read it back as plain text. Handy when you are embedding text, HTML or quotes inside JSON by hand.
JSON (JavaScript Object Notation) is the standard text format websites and apps use to exchange data — APIs, configuration files, schema markup and WordPress data all speak JSON. It is built from just a few pieces: objects in { }, arrays in [ ], strings in double quotes, numbers, true / false, and null. Because machines read it strictly, one misplaced comma can break a whole file — which is exactly what this validator helps you find and fix.
{"a": 1,} is invalid.'text' fails, "text" works.{name: "x"} fails, {"name": "x"} works.// or /* */ comments.\", \\, \n). Use the escape tool above.{ needs a } and every [ needs a ], in the right order.