The quick answer
Paste JSON, type a jq-style path such as .user.name, and the playground evaluates it live: every keystroke re-runs the path and prints the matched values with a result count. On a two-record array, [*].name returns ["Ada", "Ben"]. Supported: dotted keys, [0] indexes, [*] wildcards and chained segments; pipes and select() belong to command-line jq. The engine runs in your browser; nothing uploads.
What a jq playground is for
jq is the most useful JSON tool nobody installs on the first day they need it. This page removes the install: paste a document, type a path, see the result, with zero setup, zero shell and zero uploads. It is the fastest way to answer what a path actually returns before the expression goes into a script.
One scoping note before anything else: the engine evaluates jq-style paths, not the full jq language. The grammar follows jq's addressing style, dotted keys and [0] indexes, plus a [*] wildcard in place of jq's .[] iteration; pipes, select(), map() and the rest of the function library do not run here. The note under the output states the supported forms verbatim: .a.b, .a[0], .a[*], recursion via repeated segments.
What the path engine supports
Four forms, chainable in any order:
- .user.name: dotted access. On an object root the leading dot is optional, so user.name is the same path.
- [0]: array index. On the two-record sample below, [1] returns the whole second record, name and role.
- [*]: wildcard. On an array it yields every element; on an object it yields every value. [*].name on the sample returns both names.
- ["key"]: bracket access. user["langs"][1] on the nested sample below returns "py".
Two boundary behaviors complete the picture. An empty path returns the whole document, pretty-printed, with a count of 1. A path that matches nothing returns [] with a count of 0, which is also what happens to jq-only syntax: a pipe, select(), map() or .[] typed here simply returns no results.
Working with the playground
Paste your JSON document
The input box starts empty; paste the document. The badge beside the label flips to ✓ Valid the moment it parses, and invalid input gets a red panel naming the character position where parsing failed.
Type your path
The Path/query field holds the expression, and user.name is the default. The path re-executes on every keystroke against the same document, so a half-typed path shows partial results immediately.
Read the note line
The note under the output prints the path back with its result count, for example jq-style path ".[*].name" → 2 result(s), followed by the supported forms: .a.b, .a[0], .a[*], recursion via repeated segments.
Copy or download
Copy puts the output on your clipboard; Download writes it as formatted.json. The output pane itself shows pretty-printed JSON with two-space indentation.
Close the tab when done
Nothing was uploaded and nothing is stored: the parse and the path ran in your browser, and closing the tab erases the session.
Worked paths you can check
Every example below is a real path against a real document, with the exact output the engine produced; check them by hand before trusting the tool with your data. Read them as document, path, result.
Input
document: [{"name":"Ada","role":"admin"},{"name":"Ben","role":"user"}]
path: [*].nameOutput
[ "Ada", "Ben" ]
Input
document: the same two-record array path: [0].name
Output
"Ada"
Input
document: {"user":{"name":"Ada","langs":["js","py"]},"items":[{"b":1},{"b":2}]}
path: items[*].bOutput
[ 1, 2 ]
Three more paths on the nested document: user.name returns "Ada", user.langs[0] returns "js", and user["langs"][1] returns "py". The count in the note line tracks every one of them live as you type.
Who writes jq-style paths
Three jobs where the playground earns its bookmark:
Backend developers slice API responses with paths. Building .items[*].id against a pasted capture beats re-running a shell one-liner after every edit, and the finished path pastes straight into a script or a review comment.
Data analysts answer one-line questions like "give me every name in this export" with [*].name: no script file, no language runtime, and no upload of the customer data in the export.
DevOps and SREs prototype a path against a real log line before it reaches a runbook. The full language, pipes, select(), map(), belongs to the command-line tool; this page is where the path itself gets built and checked.
The feature list, plainly
What the jq playground promises, in one table:
| Aspect | This tool |
|---|---|
| Processing | 100% client-side (JavaScript in your browser) |
| Signup required | No; no account, no email |
| Data uploaded | Never; the document stays on your device by architecture |
| Speed | Instant, live recomputation on every keystroke |
| Mobile support | Full; touch-sized inputs, responsive layout |
| Offline use | Works after first load; the playground needs no network |
| Cost | Free, funded by clearly-labelled advertising away from controls |
| Documentation | Full path grammar, worked examples and FAQ on this page |
Every row is live and testable on this page right now.
Honest limits and edge cases
The boundary that matters most is the language itself, and the list states it with the rest:
- Pipes (|), select(), map(), keys, length and arithmetic do not run here. They return an empty array with a count of 0, not an error; full-language work belongs to the command-line jq.
- Root-level arrays need a bracket first: [*].name works, .name returns nothing.
- Numbers lose precision on round-trip: very large integers exceed JavaScript's safe integer range (2^53), because the document is parsed with the browser's JSON engine. Treat such fields as strings.
What the examples demonstrate is determinism: same document, same path, same output, every time.
Where your data goes (nowhere)
Parsing and path evaluation are pure functions that run on your machine. Exports with personal data, configs holding credentials, logs carrying tokens: nothing you paste transmits anywhere, and there is no upload endpoint at all.
How the jq Playground compares
You have options for this work; here is the honest ledger:
| Alternative | Why people pick jq Playground instead |
|---|---|
| The jq command itself | Zero install and live re-execution while you compose the path. The CLI supports the full language and still wins inside scripts and CI, where it belongs. |
| Online jq evaluators that upload | Your document never leaves the tab here; log extracts and customer exports stay local. |
| IDE plugins | Any browser on any machine, zero setup, including the locked-down laptop in the meeting room. |
The concession is deliberate: full-language jq work belongs to the command line; this page is the zero-setup place to build and check the path itself.
When a path misbehaves, start here
Five minutes of method beats an hour of trial and error.
- Validate with the worked example first: paste the two-record document above and run [*].name. If ["Ada", "Ben"] does not come back, do not trust the tool with your data.
- Read the count in the note line before the output: a count of 0 on a valid document means the path matched nothing, not that the tool failed.
When something still behaves unexpectedly, check these two first:
- Empty array on a valid document: the path is wrong or the syntax is jq-only (pipes, select(), map()); see the limits above for what runs here.
- Parse error on the badge: the document is invalid JSON, and the red panel names the character position; look for trailing commas, single quotes or unescaped newlines.
If something still does not behave, the contact page reaches the engineers directly.
Frequently asked questions
These are the questions people actually search about the jq playground, answered directly. If yours is missing, the contact page takes feature and question requests.
Is this the real jq language?
No, and the page says so plainly. The engine evaluates jq-style paths: dotted keys (.user.name), array indexes ([0]), wildcards ([*]) and chained segments, the forms the note under the output lists. Pipes, select(), map(), keys and length are command-line jq features and do not run here; typing them returns zero results.
Why use a playground instead of the jq command itself?
Speed of iteration and zero setup. In a terminal, every path edit means re-running the command and re-reading output from scratch; here the path re-executes on each keystroke against the same pasted document. On machines where you cannot install jq at all, this is the closest thing to it in a browser.
What path expressions does the engine support?
Four forms, chainable: .user.name for dotted keys, [0] for an array index, [*] for every element or value, and ["key"] for bracket access, so user["langs"][1] works. An empty path returns the whole document, and a path that matches nothing returns an empty array with a count of 0.
Why did my output come back as an empty array?
The path matched nothing, and the count in the note line reads 0. The two usual causes: a root-level array needs a bracket first ([*].name works, .name does not), and jq-only syntax such as a pipe or select() returns no results here rather than an error.
Can I test paths against my real production data?
Yes, that is the point of running locally. The document and the path execute as JavaScript in your tab: no network request carries either, nothing is stored, and the page keeps working after you switch off Wi-Fi.
Does the playground work on mobile?
Yes. The layout is touch-sized and responsive, so typing paths and reading output works on a phone or tablet. For long sessions a keyboard still wins, but a quick path check is perfectly doable on the go.
Sources and further reading
The path grammar here follows jq's addressing style; the references below are the primary sources for the full language and for the JSON underneath it:
Sources and further reading
- The jq manual, official filter reference(jqlang.github.io)
- jq, the official project home(jqlang.github.io)
- RFC 8259, the JSON data interchange syntax(datatracker.ietf.org)
- MDN Web Docs, Working with JSON(developer.mozilla.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.