Paste JSON above to pretty-print it, check that it is valid, minify it, or explore it as a collapsible tree. Everything runs in your browser, and nothing you paste is uploaded.
.json file onto the input. Load sample fills in an example.$.users[0].email.formatted.json.The status bars show the character count and size of your input, plus the number of keys, the deepest level of nesting and the root type (object or array) of the parsed result.
JSON is stricter than JavaScript. If the Tree view says your data can't be shown, look for these mistakes first:
{"a": 1,} is not allowed. Remove the comma after the last item."name", not 'name'.{name: "Ada"} must be {"name": "Ada"}.// and /* */ are not part of JSON.undefined, NaN, Infinity and functions can't appear in JSON. Use null or a string instead.For what each error message means and how to fix it, read How to fix “Unexpected token” and other JSON errors. New to the format? Start with What is JSON?
JavaScript numbers can only represent integers up to 253 − 1
(9,007,199,254,740,991) exactly. Many tools silently round larger values, which corrupts
64-bit database IDs, Twitter/X IDs and financial amounts. 2JSON uses a lossless parser, so
a value like 12345678901234567890 is shown exactly as you pasted it. Read
Handling big numbers in JSON to fix the same
problem in your own code.
No. Parsing and formatting happen with JavaScript inside your browser tab. Nothing you paste is sent to a server or stored. See the Privacy Policy.
Usually one of the mistakes listed above. The error message shows where the parser stopped, which is normally just after the problem.
No. Integers larger than 253 keep every digit.
Format indents JSON so it is easy to read. Remove Space minifies valid JSON onto one line, which makes it smaller for sending in a request or storing in a file.