Input
Output
Empty Formatting runs in your browser

Online JSON Viewer

Open JSON as a collapsible tree and find what you need in seconds. Expand and collapse objects and arrays, search every key and value, and see the path to any node. The JSON viewer works with API responses, config files and large exports, right in your browser.

How to view JSON as a tree

  1. Paste JSON into the left editor, or open or drop a .json file.
  2. The right editor shows it as a tree. Each object and array is a node you can expand or collapse with the arrow beside it.
  3. Use Expand all and Collapse all in the ⋯ menu to get an overview, then open just the branches you need.
  4. Press Ctrl+F, or choose Search in the ⋯ menu, to find any key or value. Every match is highlighted, and the arrows step through them.

Why use a JSON viewer?

A large JSON document can run to thousands of lines. Scrolling through raw text to find one field is slow and error-prone. A JSON tree viewer shows the shape of the data first, with each object and array summarised, so you can drill down to exactly the part you care about and ignore the rest.

It also makes the types obvious. Strings, numbers, booleans and nulls are colour coded, so you can see at a glance that an ID is a string rather than a number, or that a field you expected is null.

Find your way around large JSON

Search keys and values

Search, with Ctrl+F or from the ⋯ menu, looks through every key and value, expands the branches that contain a match and highlights it.

See the path to any value

Select a node and the navigation bar above the tree shows its full path from the root, such as object › orders › 3 › items › 0 › sku. Click any part of the path to jump back up to that level.

Count items

Collapsed arrays and objects show how many items or keys they contain, so you can check the size of a list without opening it.

Sort and filter

Sort the keys of an object or the items of an array, or use Transform and filter to cut a long list down to the items that match a condition.

Choose the right view

Switch between them with the Code, Tree and Preview tabs at the top of each editor. Your data stays the same in every view.

Viewing JSON from an API

To inspect a response from a website or an app, open your browser's developer tools (F12), go to the Network tab, select the request and copy the response. Paste it here to see it as a tree. Responses from curl, Postman, Insomnia or a server log work the same way. If the response is wrapped in a string, with \" before every quote, decode it first with the JSON Parser.

Opening JSON files

JSON files are plain text, so any text editor can open them, but they are hard to read that way. Drag a .json file onto this page, or use Open file, to see it as a tree instead. The JSON viewer works in Chrome, Edge, Firefox and Safari on Windows, macOS, Linux, Android and iOS, with nothing to install.

Large JSON files

Files of several megabytes open comfortably. For the largest files, keep the tree collapsed and use search rather than expanding everything, or use the Preview view, which is designed for big documents. Because the file is read by your browser and never uploaded, the size of your internet connection does not matter.

Do more with the data

Once you have found what you need, you can turn it into a spreadsheet with JSON to CSV, compare it with another version using JSON Compare, or make changes in the JSON Editor. If the viewer reports an error instead of a tree, the JSON Validator explains what is wrong.

Free and private

The online JSON viewer is free to use with no sign-up and no limits. Everything happens in your browser, so the JSON you view is never sent to a server.

Frequently asked questions

How do I view a JSON file?

Open the file with Open file, drop it onto the page, or paste its contents. The JSON appears as a collapsible tree on the right, where you can expand and collapse each object and array.

Can I search inside JSON?

Yes. Tree view has a search box that finds keys and values and highlights every match, so you can jump through a large response quickly.

How do I open a JSON file on Windows or Mac?

Any text editor can open a .json file, but a JSON viewer is easier to read. Drag the file into this page, or use Open file. It works in any modern browser on Windows, macOS, Linux, Android and iOS.

Can I view large JSON files?

Yes. Files of several megabytes open in the tree view. For the biggest files, keep nodes collapsed and use search rather than expanding everything at once.

Can I see the path to a value?

Yes. When you select a node in Tree view, the navigation bar above the tree shows its full path from the root, and you can click any part of the path to go back up.

Download JSON

Save to this browser

Saves both the input and the output. Stored only in this browser on this device; use Export in Saved to back it up.

Share

Anyone with the link can see this JSON. Leave out passwords, tokens and personal data.

Shares the input and the output together.

Editor settings

Type

{
  "id": 1024, "name": "Ada", "active": true,
  "tags": ["0O", "1lI", "=> != >="], "manager": null
}

Colour theme

Code editor

Defaults

Saved JSON

    Nothing saved yet

    Press Ctrl+S or use Save on the toolbar to keep JSON here. It stays in this browser and is never uploaded.

    Stored in this browser only, not in an account. Saved JSON and links are lost if you clear your browsing data, use a private window, switch browser or device, or the browser frees up space. Use Export all now and then to keep a copy.

    Send feedback

    How is online-json working for you?