JSON Viewer

Explore JSON as an interactive collapsible tree — filter, copy paths, and inspect deep structure in your browser.

Paste JSON on the left to explore it here.

Collapsible tree

Fold and unfold any object or array. Expand all and Collapse all flip the entire document with a single click.

Instant filter

Filter keys or values as you type. Matching branches stay visible in context so you never lose your place.

Copy paths & subtrees

Hover any node to copy its JSON path or its full subtree to the clipboard, ready for jq, JSONPath, or code.

When to use a JSON viewer

Plain-text JSON is hard to scan once a document grows beyond a screen or two. A viewer turns the same data into a navigable tree: you can collapse the parts you do not care about, expand the ones you do, and search across keys and values without losing context. It is the quickest way to confirm an API response matches the contract, trace a missing field, or pull a single nested value out of a large payload.

JSON paths, explained

Every value in a JSON document has a unique path — the sequence of keys and array indices that leads from the root to that value. The viewer shows the path on hover and copies it in dot/bracket notation: $.store.book[0].title. That format is compatible with JSONPath, jq selectors (with minor adjustments), lodash get, and most testing libraries, so you can paste it straight into your code or your debugger.

Tips for large documents

  • Keep the tree collapsed and use the filter to jump directly to the branch you need.
  • Copy a single subtree instead of the whole document when sharing a bug report.
  • For really large files (tens of megabytes), use a streaming tool like jq on the command line and paste a slice into the viewer.

Frequently asked questions

What is a JSON viewer?

A JSON viewer renders a JSON document as an interactive, collapsible tree instead of a wall of text. Each object and array becomes a node you can expand or collapse, every key is colour-coded by type, and every value carries the JSON path that points to it. It is the fastest way to navigate large or deeply nested API responses, configuration files, and database documents.

How is this different from the JSON Formatter?

The formatter rewrites your JSON as pretty-printed or minified text. The viewer parses the JSON and presents it as a tree you can fold, filter, and copy from. Use the formatter when you need to ship clean text; use the viewer when you need to explore structure, find a value, or extract a path.

How do I find a specific key or value?

Type into the filter box at the top of the tree. The viewer hides any node whose key, value, or descendants do not contain your search term, so matching branches stay visible in context. The match is case-insensitive and works on keys, string values, numbers, booleans, and null.

Can I copy a JSON path to a value?

Yes. Hover over any node and click the small path label on the right. The path is copied to your clipboard in dot/bracket notation — for example $.store.book[0].title — ready to paste into JSONPath, jq, lodash.get, or your own code.

Can I copy a whole subtree?

Yes. Hover over an object or array and click the copy icon. The entire subtree is copied as pretty-printed JSON, which is handy for extracting one branch of a large response without manually selecting nested brackets.

Is my JSON sent to a server?

No. Parsing, filtering, and rendering all happen entirely in your browser using JSON.parse. Nothing is uploaded, logged, or stored, which makes the viewer safe for inspecting API responses, JWT payloads, configuration files, and other sensitive data.

Does the viewer handle deeply nested or large JSON?

Yes. The tree renders synchronously and collapses everything below depth two by default, so even multi-megabyte payloads open in a usable state. Use Expand all or Collapse all to flip the entire tree at once, and use the filter to focus on what matters.

What does the colour coding mean?

Strings are green, numbers are amber, booleans are purple, null is muted grey, and keys are blue. This makes it easy to scan for the right type at a glance — particularly useful when a value looks like a string but is actually a number, or vice versa.

Can I view JSON5, JSONC, or NDJSON?

Not directly. The viewer uses the strict JSON parser, so comments, trailing commas, and unquoted keys are rejected. For JSON5 or JSONC, strip the non-standard tokens first; for NDJSON, wrap the lines in a top-level array before pasting.

Part of our growing tool belt — all client-side, all free.