JSON Formatter
Beautifies or minifies JSON.
Explore JSON as a collapsible tree. Expand only the parts you need, search keys and values, and copy the path to any node.
.json file, or load it From URL.The input is parsed with a strict JSON parser that keeps numbers and strings exactly as written, so a 20-digit ID is never rounded. The tree is then built from the parsed structure.
{n} with their number of keys, and arrays show [n] with their number of items.$.users[0].email. Keys that aren't plain identifiers use brackets, such as $["first name"].For {"users":[{"id":1,"email":"[email protected]","roles":["admin"]}],"total":1}:
{2}: the keys users and total.users shows [1], and its first item shows {3}.$.users[0].email and the value "[email protected]".admin opens $.users[0].roles and highlights [0].The formatter rewrites JSON as indented text to copy or download. The viewer shows it as a tree you can fold, search, and navigate, which suits large API responses.
A way to point to one value inside a JSON document, such as $.users[0].email. $ is the root, dots go into objects, and [0] selects an array item.
Yes, with From URL, if the API allows cross-origin requests (CORS). Your browser fetches it directly; nothing goes through our server.
No. Parsing and display happen in your browser.
Often used together with the JSON Viewer.
Beautifies or minifies JSON.
Checks JSON syntax and explains any error in plain English.
Validates JSON data against a JSON Schema (draft 2020-12 or draft-07) and lists every error.