jq Playground — Online jq Tester
Test jq filters online against your JSON with live results. Real jq 1.8 in WebAssembly, examples, compact and raw output. Free, private, in your browser.
Output
jq 1.8
Runs jq 1.8 (WebAssembly) in a background worker. Your JSON is not uploaded.
How to use
- Paste JSON into the input pane, or keep the sample data.
- Type a jq filter. Results update as you type; Enter runs it immediately.
- Try the example chips, switch compact, raw, slurp or sorted-keys output, and copy the result.
Example
.users[] | select(.active) | {name, role}Details and limitations
This is the real jq 1.8 compiled to WebAssembly. It is downloaded once from a public CDN (jsDelivr) and runs in a background worker; your JSON never leaves your browser.
Each run stops after 5 seconds and output is capped at 1 MB, so an endless filter such as repeat cannot freeze the page. Leave the input empty to run a filter against null, like jq -n.
FAQ
Is this the same as jq on the command line?
Yes. It is jq 1.8 itself, so built-ins, error messages and output formatting match the jq command. Options like -c, -r, -s and -S are available as toggles.
Can I process several JSON documents at once?
Yes. Put them one after another in the input, as in a JSON Lines file. Turn on Slurp to read them into a single array first.
Why does my filter show an error?
The message comes straight from jq. Common causes are indexing a value of the wrong type, such as .name on an array, or a typo in the filter.
Related tools
Format references
Tool page updated: