JSONPath Query Tester

Query pasted or uploaded JSON with supported paths and editable query examples.

On-device No sign-up Free to use

Inspect input controls

Showing an example. Edit to see your own.

Drop your file here

or choose one from your device

Optional UTF-8 text up to 1,000,000 bytes. A chosen file replaces pasted text.

    ?

    Up to 1,000,000 UTF-8 bytes, 20,000 nodes and 32 nesting levels. Repeated object keys are refused.

    ?

    Root $, named children, array indices, wildcards, slices and recursive named members. No filters, unions, functions or JMESPath.

    Processed in your browser. Your inputs stay on this device.

    Result

    Showing an example.

    Select both book titles and keep their distinct JSON Pointer locations.

    /books/0/title → "First"
    /books/1/title → "Second"
    The result contains two matches; the locations are JSON Pointers.

    Loading the tool. Your result will appear here.

    https://usefreetools.net/jsonpath-query-tester · 20 November 2026

    Was this helpful?

    How to use JSONPath Query Tester

    1. Paste JSON or choose one UTF-8 JSON file. A selected file replaces the pasted document.
    2. Enter a supported path or choose All titles, First book or Every price. Use bracket-quoted names for keys outside the simple dot-name grammar.
    3. Read each value alongside its JSON Pointer. Download jsonpath-matches.json for all accepted matches; long values and large selections are shortened in the table.

    Example: JSONPath Query Tester

    Select both book titles and keep their distinct JSON Pointer locations.

    You add
    JSON document: {"books":[{"title":"First","price":12},{"title":"Second","price":8}]}; JSONPath subset: $.books[*].title
    You get
    /books/0/title → "First" /books/1/title → "Second" The result contains two matches; the locations are JSON Pointers.

    Options

    Selection syntax
    Start with $. Use named children, array indices, wildcards, start:end:step slices or recursive named members. Negative indices count from the array end. Filters, unions, functions, script evaluation and JMESPath are unsupported.
    Pointers and exports
    A JSON Pointer identifies a selected value’s location; an empty pointer identifies the root. The table shows the first 200 matches and shortens values to 500 characters. The JSON download keeps all accepted matches and their values, subject to the output limit.

    Supported inputs and limits

    • JSON input up to 1,000,000 UTF-8 bytes, 20,000 nodes and 32 levels; duplicate object keys are refused.
    • Query input is limited to 2,048 UTF-8 bytes and 64 segments, with numeric indices and slice bounds within ±1,000,000.
    • Selection stops above 100,000 operations or 1,000 matches.
    • A slice step of zero selects nothing.
    • The result JSON is limited to 2,000,000 bytes.
    More details

    This is the documented RFC 9535 subset, not full grammar support; it does not rewrite data or validate it against a schema.

    Where your input is processed

    This tool does not upload your inputs. See the limits for anything saved on your device.

    An empty selection is a result

    Check the spelling of property names, whether a node is an array and the actual indexes before changing the query. This tool selects data; it does not validate the document against a schema or rewrite it. Keep the path export when downstream work needs to distinguish identical values from different records.

    Questions about JSONPath Query Tester

    Why does a query fail instead of returning nothing?

    Unsupported query syntax is refused; a supported query with no matches has an empty result.

    Can I use JMESPath or filters?

    No. This tool supports only the listed JSONPath selectors.

    Is a missing property the same as null?

    No. A missing property is not selected, while an existing null value can be a match.

    Page updated · Project managed by Tony Hines · Report a problem with JSONPath Query Tester