Local JSON tool

JSON Viewer

A JSON viewer is for reading, not for reprinting. This page opens the tree: objects and arrays fold, each branch shows how many children it holds, and a web address inside a string can be opened in a new tab.

Result

Runs in your browser. JSON is not uploaded. Privacy policy

Reading a payload

Paste the value or drop the file. Tree view is selected, so a successful parse draws the document instead of a wall of indented text. Strings, numbers, true, false, and null stay readable as words. Color is a second cue. Quotes around a string and the absence of quotes around a number still tell you the type if you cannot see the color.

Branches below the third level start folded. The top of a typical API object stays open, and the deep configuration under it stays shut until you ask. Expand all opens every branch that has already been built. Collapse all leaves the summary line, which is the top brace and its child count. Very long arrays show the first group of entries and a control for the rest, so a large payload does not try to paint every row at once.

Search, links, and the raw text

Search compares your query with keys, array indexes, and leaf values. Branches that do not contain a hit are hidden, and branches that do are opened. The query is not added to the address bar and is not sent to a server. Clear the field to see the whole tree again.

An http or https address inside a string becomes a link. The link text keeps the address, and a screen-reader note says it opens in a new tab. Other schemes are left as plain text. The input box still holds the exact paste, including its original spacing. Copy from the tree places a two-space pretty print on the clipboard, which is the form other tools usually want. If you needed the exact server bytes, they are still in the input.

Viewer and formatter

Use the JSON formatter when the goal is text you will paste somewhere else. Use this viewer when the goal is to understand a document: which keys exist, how large an array is, which flag is false. The JSON tree viewer explains the fold rules in more detail. Validation is separate: the JSON validator does not draw a tree, it only reports whether the parse succeeded and, if not, where.

The Chrome extension adds one behavior this page cannot: if a tab is a raw JSON document, the extension replaces that document with the same tree. A normal website is left as the site wrote it, including an article that only mentions JSON. Install the extension when you want that, and use this page when the JSON is already in a message or a file.

A practical reading order

  1. Paste the payload and let the tree draw.
  2. Read the child count before you expand a large array.
  3. Search for one key instead of expanding everything.
  4. If the tree does not draw, the text is not one JSON value. Open the validator and read the line and column.
  5. Copy the pretty-printed form only when another tool asked for indented text.

Questions

Is a JSON viewer the same as a formatter?

No. A formatter reprints text. A viewer draws structure. This page starts in the tree. You can still press Beautify if you want the two-space text, and Copy from the tree already uses that text.

Why are some branches closed?

Anything nested three levels or deeper starts closed so a large object does not paint every descendant at once. Expand a branch, or use Expand all for the branches that are already built. Entries past the first 80 in a long array stay behind Show more.

Does search upload the document?

No. Search filters the tree already parsed in the tab. The query stays in the field and is not written into the page address.

What if the JSON is a single string or number?

The tree shows that leaf at the root. You do not need an object wrapper. null, true, false, a number, and a string are all one JSON value.