JSON & XML Viewer

View JSON and XML as an interactive collapsible tree with search, syntax highlighting, and one-click JSONPath and XPath copying.

Input
Format
Valid JSON
{ 8 keys
"company": "Aidelico"
"website": "https://tools.aidelico.com"
"founded": 2024
"verified": true
"parent": null
"categories": [ 4 items
0: "SEO"
1: "Developers"
2: "Content"
3: "Utilities"
"tools": [ 2 items
"status": { 3 keys
"online": true
"latencyMs": 12
JSONPath:Click a node to see its path
JSON
Format
26
Nodes
3
Max Depth
486 B
Size
  1. Paste JSON or XML, upload a file (.json, .xml, .svg, .rss, and more), or load one of the samples.
  2. The format is detected automatically. Pick JSON or XML manually if you need to override it.
  3. Explore the tree: expand or collapse nodes, use "Expand All" or "Collapse All", and search across keys, tags, attributes, and values.
  4. Select any node and click "Copy Path" to copy its JSONPath or XPath, or switch to the Formatted view to copy or download pretty-printed output.
  • Auto-detects JSON or XML with manual override
  • Collapsible tree with expand all, collapse all, and keyboard navigation
  • Search across keys, tags, attributes, and values with match highlighting
  • Click any node to copy its JSONPath or XPath
  • Formatted view with copy and download, 100% client-side

What are JSONPath and XPath?

They are query expressions that point to a specific value in a document. A JSONPath such as $.store.book[0].title selects a value in JSON, while an XPath such as /catalog/book[1]/title selects a node in XML. Copied paths are handy for tests, data mapping, and scraping scripts.

Can I view RSS feeds, SVG files, and other XML formats?

Yes. Any well-formed XML document can be explored, including RSS and Atom feeds, SVG images, XSD schemas, and WSDL files.

Why does my XML show a parse error?

XML must be well-formed: it needs a single root element, every tag must be closed, attribute values must be quoted, and characters like & and < must be escaped as &amp; and &lt; inside text.

Is there a file size limit?

There is no fixed limit because files are processed in your browser and never uploaded. Very large documents are limited only by your device's memory and may take a moment to render.