JSONPath Tester & Query Tool

Query JSON with JSONPath expressions. Private, in your browser.

Input

Output

Ready
Ln 1, Col 1

Run JSONPath queries against your JSON

Type an expression starting with $ into the search box above the output. The result updates as you type and shows every matching value. The example query selects the names of all active users. Every conversion works on the matches, so you can export them as CSV, YAML or code.

How to use it

  1. Paste your JSON into the Input panel.
  2. Type a JSONPath expression starting with $ in the output search box.
  3. Check the matches and the match count in the status bar, then copy, download or convert them.

Supported JSONPath syntax

  • $.store.book or $['store']['book']: child keys
  • $..price: recursive descent (any depth)
  • [*] and .*: all items or values
  • [0], [-1], [0,2], [1:3], [::2]: indexes and slices
  • [?(@.price < 10)], [?(@.tags)], [?(@.a == 'x' && @.b > 1)]: filters
  • [?(@.email =~ /@example\.com$/i)]: regular-expression filters

More JSON tools

All tools are free and run privately in your browser.

JSONPath Tester FAQ

What is JSONPath?

JSONPath is a query language for JSON, similar to XPath for XML. An expression like $.users[*].email selects the email of every user. It is standardised as RFC 9535.

How do I filter an array in JSONPath?

Use a filter expression: $.items[?(@.price < 10)] returns items whose price is below 10. Combine conditions with && and ||.

Can I export the query results?

Yes. The matches behave like normal output: copy or download them, or pick a Convert option such as CSV or YAML.

Is my data uploaded to a server?

No. The JSONPath Tester runs entirely in your browser using JavaScript. Your data is never uploaded, logged or stored, and the tool keeps working offline after your first visit.