jq Playground (Online jq Tester)
NewRun jq filters against JSON in your browser. Supports def functions, modules, reduce/foreach, streaming, regex, dates, slurp/null-input flags and more — no install, nothing uploaded.
Variables and modules (--argjson, import / include)
A client-side jq implementation that runs entirely in your browser: paths, slices, pipes, def functions with closures and recursion, import/include modules, reduce/foreach/limit/label-break, destructuring (?// too), streaming (--stream, tostream, fromstream, input/inputs), regex (match, capture, scan, sub, gsub, splits), dates (strftime, strptime, mktime), math functions, @csv/@tsv/@json/@base32/@base64/@sh/@uri/@html, $ENV, $__loc__ and debug/stderr. Differences from jq 1.7/1.8: local-timezone functions (localtime, strflocaltime) use UTC, $ENV is empty (browser), builtins, modulemeta and --seq are not implemented, numbers are IEEE doubles, and JavaScript orders integer-like object keys first.
Frequently Asked Questions
Is this the real jq?
It is a JavaScript implementation of the jq language that runs in your browser. It supports def functions (closures, recursion), import/include modules, reduce/foreach/limit/label-break, destructuring, --stream and input/inputs, regex, dates and math. Differences: local-timezone functions use UTC, $ENV is empty, and builtins/modulemeta/--seq are not implemented.
Is my JSON uploaded?
No. Filters run entirely in your browser.
How do I get raw strings like jq -r?
Use the raw output option, which prints strings without quotes.
Which builtins are supported?
map, select, sort_by, group_by, unique_by, min_by/max_by, to_entries/from_entries/with_entries, test/sub/gsub/capture, range, limit, flatten, add, join/split, paths, del and more.