JSON Viewer

Explore JSON as a collapsible tree. Click any key to copy its path, or search to jump straight to a value.

Input
Tree

Tree view will appear here...

Pro Tip

Click any key in the tree to copy its JSON path to your clipboard.

Collapsible Tree

Expand and collapse nested objects and arrays to focus on what matters.

Search Within Tree

Find any key or value instantly, with matching branches auto-expanded.

Local Processing

Your data never leaves your browser. Privacy first exploration.

How to Use the JSON Viewer

  1. Paste JSON into the input pane — the tree on the right renders immediately as you type or paste, no button to click.
  2. Expand and collapse nested objects and arrays to focus on the branch you care about.
  3. Type in the search box to find any key or value — matching branches expand automatically.
  4. Click any key in the tree to copy its full path to your clipboard.

Example: Copying the Path to a Nested Value

Input

{
  "user": {
    "name": "Priya Sharma",
    "roles": ["admin", "editor"],
    "active": true
  }
}

Clicking "admin" in the tree copies

$.user.roles[0]

Paths start at $ (the document root), use dot notation for object keys, and bracket indices for array positions — the same convention JSONPath tools and many query libraries expect.

Why a tree instead of formatted text

Formatted JSON still makes you visually track brace depth across hundreds of lines. A collapsible tree shows the document as the structure it actually is: fold away the branches you don’t care about, keep three levels open in one place and one level everywhere else. For deep documents — API catalogs, OpenAPI specs, exported state — that’s the difference between scrolling and navigating.

From tree path to code

The copied path drops straight into most tooling: $.user.roles[0] maps directly to user.roles[0] in JavaScript, jq’s .user.roles[0], or a JSONPath query. Copying the path instead of re-deriving it by eye eliminates the classic off-by-one on array indices in deeply nested data.

Frequently Asked Questions

Related Tools