“We noticed you may be using an ad blocker. SEO Site Checker relies on ads to keep our SEO tools free. Please consider disabling your ad blocker to support us - thank you!”“We noticed you may be using an ad blocker. SEO Site Checker relies on ads to keep our SEO tools free. Please consider disabling your ad blocker to support us - thank you!”
Paste JSON, open a file or load a public URL, then read it as a searchable tree. Free, no sign-up.
Result
What This JSON Viewer Does
Quick answer: Our online JSON viewer takes pasted text, a file or a public address through Load from URL. Press View JSON and a collapsible tree opens, for finding one value inside deep nesting.
Pasted and uploaded JSON is read in your browser and never sent to us. Only Load from URL goes through our server. This page shows structure only only. For a JSON-LD block, the Schema Markup Validator tests it against schema.org.
How to View JSON Online
Load the text. Paste a minified API response under Enter or paste JSON, press the file button, which opens .json first and takes .jsonld, .geojson and .txt under All files (a PNG gets an Invalid File message), or type a public address under Load from URL.
Press View JSON. An empty box answers Paste or type some JSON first.
Read the result. Invalid text shows a red message.
Load from URL starts when the address is complete or on Enter, and fetches up to 3 MB from public addresses only. http://127.0.0.1/x.json was refused. A page that is not JSON, such as example.com, loads as plain text with no warning.
Red message? The text is not valid JSON. {"a":1,} gives Parse error on line 1, then Expecting 'STRING', got '}'. The JSON syntax diagrams show the rules.
Tree View, Code View and the Other Modes
Switch Editor Mode picks one of five views.
Mode
Best for
Tree
Opening nested objects, with Expand all fields and Collapse all fields
Code
Indented raw JSON, searched with Ctrl+F
Form
Editable fields, one row per key
Text
Editable indented text, exact numbers kept
View
A read-only tree
Tree, form and view have a search box with Next result and Previous result. Under 200,000 characters a document opens expanded. A larger one opens collapsed, so press Expand all fields or search.
One trap: Save as TXT and Copy to Clipboard give one compact line from tree, form or view. Switch to code view first for indented text.
Long Numbers, Repeated Keys and Key Order Stay Exact
A browser parses each number into a 64-bit IEEE 754 float, so 12345678901234567890 gets rounded by JSON.parse in JavaScript. We inspect the raw text first. {"id": 12345678901234567890, "price": 1.10} opens in code view, digits intact, with a notice explaining why.
Repeated keys survive too: {"a":1,"a":2} keeps both. So does key order: browsers sort integer-like keys first, so {"b":1,"2":2,"1":3} would return 1, 2, b, but here it stays b, 2, 1. RFC 8259 says names should be unique and warns that big numbers may not interoperate.
The price is the tree: those documents offer Code and Text only. In tree, form and view, 2.50 becomes 2.5 and 1E5 becomes 100000. The JSON Validator warns when valid JSON repeats a key.
Large Files, Privacy and What Runs Where
Speed on a huge paste depends on your device. A 2.8 MB array took about 3.6 seconds in desktop Chromium, a 14.5 MB array took about 20 seconds. View JSON sent no network request when we checked. Load from URL does reach us, at 20 requests a minute per visitor.
When You Need More Than a Viewer
This page reads, not diffs or converts. For pretty printing, editing or converting, use a sibling in our development tools:
Frequently Asked Questions (FAQs) is a list of common questions and answers provided to quickly address common concerns or inquiries.
What is a JSON viewer used for?
People use a JSON viewer for API responses, config files and JSON-LD blocks, mostly to find one value inside deep nesting. Objects and arrays become branches to open and search. Objects and arrays become branches you can open and search.
Is my JSON uploaded when I use this viewer?
Pasted text and files stay put. View JSON runs in your browser, and we saw no network request when it ran. The one exception is Load from URL, which sends the address to our server so it can fetch the file for you.
Can I open a JSON file or load JSON from a URL?
The file button takes .json, .jsonld, .geojson and .txt files, and Load from URL takes a public http or https address. Our server fetches it, up to 3 MB, and refuses private network addresses such as localhost.
How do I search inside JSON?
In tree view, type into the search box and step through matches with Next result and Previous result. Searching London in a sample document highlighted its single match. Code view has no search box, so press Ctrl+F there to find a key or value.
Why does my JSON open in code view instead of the tree?
The document holds something a browser would change: a number with more digits than a 64-bit float keeps, a repeated key, or numeric keys whose order would shift. Code view keeps the text exactly as written, with a notice. Nothing is wrong with your file.
What does the error message mean when View JSON fails?
It means the text is not valid JSON, and the message names the line. A trailing comma before the closing brace gives Parse error on line 1 with Expecting 'STRING', got '}'. Single quotes, comments and NaN also fail with a red parse error. Fix that spot and try again.
We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. You consent to our cookies if you continue to use our website.
Install SEO Site CheckerFree SEO tools - always in your pocket.