Swelıty
Tools for everyone

Free Online JSON Viewer

View JSON as a collapsible tree. Search keys and values, copy the path or value of any node, and see counts of each type.

JSON input

Tree view

▸Object(7)
project:"Swelity"
version:"1.4.0"
active:true
▸tags:Array(3)
[0]:"tools"
[1]:"free"
[2]:"developer"
▸owner:Object(3)
name:"Sam"
email:"sam@example.com"
▸address:Object(2)
city:"London"
postcode:"E1 6AN"
▸releases:Array(2)
▸[0]:Object(3)
version:"1.3.0"
date:"2026-09-01"
notes:null
▸[1]:Object(3)
version:"1.4.0"
date:"2026-11-01"
notes:"Playgrounds"
▸limits:Object(2)
uploadMb:25
ratio:0.75
$
Objects 6Arrays 2Strings 14Numbers 2Booleans 1Nulls 1Depth 3

How to use

  1. Paste your JSON into the input editor. A sample is loaded to start with.

  2. Explore the tree on the right. Click an object or array to open or close it, and use Expand all or Collapse all for the whole document.

  3. Type in the search box to find keys and values. Matches are marked and the branches that contain them open by themselves.

  4. Click any row to see its path, then copy the path (for example $.owner.address.city) or the value.

  5. Use A− and A+ in the editor's title bar to change the text size, untick Wrap long lines under it to scroll sideways, and use the icons to copy or clear the text.

Why use this tool

  • Collapsible tree

    Open and close objects and arrays, with the number of items shown on each one.

  • Search

    Find keys and values, with matches marked and their parent branches opened.

  • Copy paths and values

    Select a node to get its path, such as $.releases[1].version, and copy it or its value.

  • Summary

    See how many objects, arrays, strings, numbers, booleans and nulls the document has, and how deep it goes.

  • Code editor

    A real code editor with syntax colours, line numbers, a Format button, adjustable text size and optional line wrapping.

About this tool

The JSON Viewer turns JSON into a collapsible tree that is easy to read and explore. Paste a response from an API, a config file or any JSON document, and open and close the objects and arrays, search for a key or a value, and copy the path to anything you find. A summary counts each type of value and shows how deeply the data is nested. It is a quick way to understand the shape of JSON that is too large or too nested to read as plain text.

Frequently asked questions

The formatter rewrites your JSON with neat indentation, or minifies it. The viewer shows the same JSON as a tree you can open, close and search, which is easier for large or deeply nested data.

Yes. If the JSON cannot be read, the tree shows the problem. For a full validation report, use the JSON Validator.

They start with $ for the whole document, then use dots for keys and square brackets for array positions, for example $.owner.address.city or $.tags[0].

It handles most payloads. Each branch shows its first 500 items, and very large documents may slow the page down.

Yes. Use A− and A+ in the editor's title bar to change the text size, and untick Wrap long lines under the editor to scroll sideways. Both choices are remembered on this device.