Run jq on JSON

Type a jq filter and a JSON document — see the transformed output instantly. Runs entirely in your browser, no upload, no sign-up.

Output

Run jq on JSON in your browser

Paste a JSON document, type a jq filter, and see the transformed output instantly. Everything runs locally in your browser with a pure-Rust jq engine (jaq) — your data is never uploaded to a server.

Examples

Notes

FAQ

Is this the real jq, and does it behave identically?

The engine is jaq, a pure-Rust implementation of the jq language, loaded with the jq standard library (map, select, group_by, sort_by, add, unique, and friends). Filters that work in jq almost always work here. One visible difference: jaq emits object keys in sorted order rather than insertion order.

Why did my filter print several lines instead of one result?

A jq filter produces a stream of values — zero, one, or many — and each value is shown on its own line. .[] over a three-element array yields three outputs. To collapse a stream into a single value, wrap it in [...] (e.g. [.[] | .name]) or use map(...).

What kinds of errors will the tool report?

Four distinct cases: invalid JSON input (with the parser's position message), a jq parse error (e.g. a trailing |), a compile error (an unknown function name), and runtime errors such as adding a number to a string. An empty filter is also rejected, so a blank query never silently returns nothing.

Does my JSON leave the browser when I run a query?

No. jaq is compiled to WebAssembly and evaluates the filter entirely in your tab — there is no server-side jq process and nothing is transmitted or logged.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool jq-query ".users | map(.name)" 'json={ "users": [ { "name": "Ada" } ] }'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/jq-query/?query=.users%20%7C%20map%28.name%29&json=%7B%20%22users%22%3A%20%5B%20%7B%20%22name%22%3A%20%22Ada%22%20%7D%20%5D%20%7D&pretty=true

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.