JSON Viewer
View JSON online as a collapsible tree with value types, item counts and copyable paths. Explore large API responses without scrolling through raw text.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the JSON Viewer
Large JSON documents are easier to understand as a tree. The JSON Viewer shows every object and array as a collapsible node with its type and size, and lets you copy the path to any value.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the JSON Viewer
- Paste JSON or open a file.
- Expand and collapse nodes to explore the structure.
- Copy a value or its path (for example data.items[0].id) for use in code.
Common mistakes
- Pasting JavaScript instead of JSON. Objects copied from code often have single quotes, unquoted keys or trailing commas. The viewer then shows "Invalid JSON" with the position; fix the input in the JSON Formatter.
- Paths with unusual keys. Keys with spaces, dashes or dots cannot be written with dot notation. Copied paths use bracket notation for them, such as data["first-name"], so paste them as they are.
- Expanding everything in a huge file. "Expand all" on a document with tens of thousands of nodes renders all of them at once. Expand the branches you need instead.
Works well with the JSON Viewer
- JSON Formatter: fix or reformat the JSON as text.
- JSON Diff: compare two responses and see changed values.
- JSON to TypeScript: generate types for the structure you are exploring.
- JSON to CSV: turn an array of records into a spreadsheet.
Frequently asked questions
How large a file can it open?
Files of several megabytes work well, since nothing is uploaded and nodes are only rendered when expanded.
What path format is copied?
JavaScript-style access paths, such as user.addresses[1].city, ready to paste into code or a query.
Is my JSON uploaded?
No. It is parsed and rendered in your browser, so API responses with personal data stay on your device.
Can I see item counts?
Yes. Every object and array node shows how many keys or items it has, so you can spot empty or unexpectedly large branches without expanding them.
Guides and tutorials
- JSON & Data Formats
How to Convert Nested JSON to CSV (Flattening Explained)
Turn nested JSON into a clean CSV for Excel or Google Sheets: dotted column names, arrays, missing keys, quoting and leading zeros, with working Python code.
· 5 min read
- JSON & Data Formats
Common JSON Syntax Errors and How to Fix Them
Trailing commas, single quotes, comments, NaN and invisible characters: what each JSON parse error means, how to find the exact line, and how to fix it.
· 8 min read
Related tools
HTML Viewer
Free online HTML viewer: paste HTML code and see it rendered live in a secure sandboxed preview. Check snippets, emails and templates with scripts off.
Mermaid Editor
Write Mermaid diagrams online with a live preview: flowcharts, sequence, class, ER, state and Gantt diagrams. Export SVG or PNG and share a link.
Markdown Viewer
Preview GitHub-flavoured Markdown online as you type, with sanitised HTML output. Check READMEs, docs and notes before you publish them.
JSONPath Tester
Test JSONPath expressions online against your JSON with live results. Supports filters, wildcards, recursive descent, slices and unions, and with each match’s path.
JSON Formatter
Format and beautify JSON with configurable indentation and optional key sorting. Errors are reported with exact line and column.
HTML Formatter
Format and beautify messy or minified HTML into clean, indented markup with Prettier, including embedded CSS and JavaScript. Runs locally in your browser.