JSON Viewer

Explore JSON documents in an interactive, searchable tree view. Fast, free, and fully client-side.

Loading tool...

How the JSON Viewer Works

Displays a JSON document as a collapsible tree, so you can expand or collapse objects and arrays at any depth. A search box matches key names and primitive values, highlights the hits, and opens the branches that contain them. The text is parsed and rendered in your browser, and the file is never uploaded.

Usage Example

Expanding a nested API response to find which array holds the record you need.

Frequently Asked Questions

How does search work in the tree?

The search box runs a case-insensitive substring match against key names and primitive values. Matching keys are highlighted in amber, and any collapsed branch that contains a hit opens automatically so the match is visible.

What does the stats bar report?

It shows the size of the minified document in KB, the maximum nesting depth, the number of keys, and the number of array items. These figures come from the parsed structure, so the whitespace in your original file does not change them.

What happens when the input is invalid?

The tree is replaced by a JSON Syntax Error message carrying the parser error text. Format and Minify buttons appear only when the input parses, and they rewrite the text with two-space indentation or onto a single line.

Browse more

See all JSON tools.