JSON Wrench

JSON Tree Viewer

Input
All processing happens in your browser. Your JSON is never uploaded.
Output
Paste JSON on the left.Paste JSON above. It's checked as you type. Broken JSON gets an exact error location and a one-click fix.

Deeply nested JSON is hard to read as text. Paste it above and press Tree to open a full-screen, interactive tree where every object and array can be expanded and collapsed.

The tree opens expanded and shows the type of each value and the number of items in every object and array, so you can see the shape of an API response at a glance. Very large documents open partly expanded, and Expand all and Collapse all are one click away.

Example

JSON
{"user":{"id":1,"profile":{"name":"Ada","links":[{"type":"github","url":"https://github.com/ada"},{"type":"site","url":"https://example.com"}]},"roles":["admin","editor"]}}

Copy any part of your JSON

Every value, object and array in the tree has a Copy button (shown on hover with a mouse, always on touch screens) that copies just that part as JSON. Copy All copies the whole document exactly as formatted.

The tree is built from your text, not from a JavaScript object, so it shows and copies values exactly as written: 12345678901234567890 stays exact, 1.10 keeps its zero, and duplicate keys are all listed.

Works with broken JSON

If the input is invalid, press Fix first and the tree opens on the repaired JSON. Escaped JSON strings are unescaped automatically, so the tree shows the real structure instead of one long string.

Keyboard

  • Esc closes the tree.
  • Ctrl/Cmd + F searches the input or output text.
  • Ctrl/Cmd + Shift + F formats, Ctrl/Cmd + Shift + M minifies, Ctrl/Cmd + Enter fixes.

Frequently asked questions

Can I view a JSON file as a tree?

Yes. Open the file in any editor, copy its contents and paste them here. Documents up to 5 MB are validated and formatted as you type.

Is my JSON sent to a server to build the tree?

No. The tree is built in your browser.

More JSON tools