Back to public tools
All tools
Developer utility

JSON Path Extractor

Pull out just the part of a JSON file you need, such as a person’s name or one item from a list.

Add the keys or list positions in order, then select Extract. Your JSON stays in this browser tab.

JSON input

0 bytes of 2 MiB maximum. Strict JSON only.

Key/index path

Leave the path empty to select all the JSON. Add key chooses an object field by its exact name, including an empty name. Add index chooses an array position, starting at 0; use whole numbers without leading zeros.

Breadcrumb: root

Advanced settings
Exact path and tree

Current typed-path pointer: (empty root pointer). Object numeric keys stay keys; array indexes are zero-based. Imports are local and require Apply.

Expression and multiple-path extraction

Uses the JSON Pointer above. Empty selects root.

Expressions support standard wildcards, recursive descent, unions, negative indexes, slices, filters and length/count/match/search/value. JSONPath uses a restricted finite-number profile to prevent rounded comparisons; exact Pointer modes retain large numeric tokens. No JavaScript scripting or custom functions.

CSV and portable paths

CSV supports scalar matches only, with query, pointer, type and value columns. The default prefixes formula-like cells with an apostrophe, including negative numbers. Raw CSV keeps text exact and can be interpreted as formulas by spreadsheet software.

Recipes contain path names and query literals you choose to save, never JSON input or results. Keep sensitive recipes private. No automatic browser storage.

How to use JSON Path Extractor

Paste strict JSON or import a UTF8 file up to2MiB. Use Add key for an exact object field or Add index for a zero-based array position. Keys containing dots, slashes or brackets are literal names. Move and remove segments as needed. Leave the path empty to select root, then choose Extract. Copy or download the selected JSON. Clear and Undo work until your next edit.

Advanced settings start closed. Browse JSON tree loads an optional bounded tree; expand a branch and select a value to build the real typed path. Find a path offers actual document pointers, up to200matches. Enter a JSON Pointer and Apply to replace the typed path. Empty means root; escape a key slash as ~1 and tilde as ~0. Numeric object keys stay keys; array indexes need canonical whole numbers without leading zeroes. Import/export saves a real pointer file, and Copy has a selected-text fallback.

Enable advanced extraction to use one or multiple exact pointers, or full RFC9535 JSONPath expressions. Multiple queries use a JSON array of strings, such as ["/users/0/name","/users/1/name"]. Expression mode supports wildcards, recursive descent, unions, negative indexes, slices, comparisons, logical filters and length/count/match/search/value. It does not execute JavaScript or support legacy scripting/custom functions. Use the wildcard example for $.users[*].name.

JSONPath data and query numbers must be finite binary64 numbers whose exact written decimal value survives serialization; values that would round are rejected. Paired Unicode surrogates are required in expression data. Use exact Pointer modes for larger numeric tokens. Extracted values always come from the original source spans. Expression results and multiple paths produce an array, retaining duplicate matches and query order. Missing values produce no match; null is a valid value. Per-query errors and nearby existing-path suggestions remain visible.

Download extracted JSON, a complete path report or scalar CSV. CSV has query, pointer, type and value columns, uses quoted cells and CRLF, and refuses objects/arrays rather than silently flattening them. By default formula-like cells get an apostrophe, including negative values. Raw CSV is an explicit advanced choice and may be interpreted as formulas by spreadsheet software.

Save a path recipe to keep mode, paths, expressions and typed segments. Recipes≤32KiB never include JSON input, results or filenames, but keys and query literals may be private. Import validates before changing your choices. No automatic storage or uploads. Closing settings keeps state; Reset keeps JSON and the typed path.

Example: extract names from an API response

For {"users":[{"name":"Ada"},{"name":"Lin"}]}, a basic key users, index0 and key name returns "Ada". Applying pointer /users/1/name selects Lin. Enable JSONPath and enter $.users[*].name for ["Ada","Lin"], or $.users[?@.name == 'Ada'].name to filter. Missing /users/0/nam suggests existing nearby paths; it never silently changes your request.

About exact paths and JSONPath

A typed path or JSON Pointer addresses one value. RFC9535 JSONPath selects a list through expressions. This tool uses a pinned local standards-based parser/evaluator for expressions, with focused checks rather than a certification claim. Object wildcard order follows that evaluator; array order follows the expression.

Original limits remain 2 MiB input, 100 levels, 100,000 values, 100 segments and 1,000 characters per number token, with 10 MiB output. Advanced extraction has 1,000 matches / 10 MiB combined source values and metadata, up to 40 queries of 4,096 characters and an 8 second cancellable worker. Tree inspection is separate: 50,000 values, 8 MiB path text and 400 visible rows. A preview limit never means the unseen source was removed. No JSON is executed, fetched or automatically saved. Downloads contain the selected data you choose to save.

Stars and feedback

Loading…

Tool reference #123