JSON & YAML Tree Viewer
Explore JSON and YAML as a collapsible tree, search values, and copy paths without losing large integers.
How to use
- Paste JSON or YAML, or drop a local file up to 10 MB. Auto detects common formats; select YAML for flow-style YAML collections.
- Expand branches, choose a depth, or load another 100 children. Search keys and values; use Previous/Next or Shift+Enter/Enter to reveal matches, including unloaded children.
- Copy any value or switch between JSONPath and JS accessor paths. The root has depth zero; JS accessors omit its variable name.
- Large JSON numbers retain their source text. YAML aliases expand, but cycles are rejected; only the first document is shown. Trees stop at 100,000 nodes or 256 levels, and visible rows are paged in groups of 200.
FAQ
How is this different from a JSON formatter or JSONPath tester?
This JSON tree viewer is for interactive exploration and path discovery. Use JSON Formatter to reformat text, or JSONPath Tester to evaluate queries and filters.
Does the viewer preserve large integers?
JSON numbers are displayed and copied using the original source text, including inside copied objects and arrays. Integers outside the JavaScript safe range trigger a warning. YAML integers are parsed as BigInt and copied in decimal; YAML floating-point values use JavaScript numbers.
Can I open YAML anchors and multiple documents?
Yes. Non-cyclic aliases expand into the tree with an alias expansion limit. Only the first YAML document is displayed; additional documents produce a notice. Complex mapping keys, non-finite numbers and duplicate JSON keys are rejected. Select YAML explicitly for YAML flow syntax.
Is my JSON uploaded or saved?
No. Parsing runs in a local browser worker. Input and searches stay in memory and disappear on reload. Only format, path style and preferred expansion depth are saved.