← All text tools

jq Filter Playground

Run jq filters such as paths, select, map, group_by, sort_by, reduce and string interpolation on pasted JSON and see each result instantly, with clear error messages.

  • Free
  • No sign-up
  • Works on any device

About jq Filter Playground

jq is a command-line language for slicing and reshaping JSON. This playground runs a large subset of jq 1.7 in your browser: paths like .users[].name, pipes and commas, select, map, group_by, sort_by, unique_by, reduce, foreach, if and try, user-defined functions, variables with destructuring, assignment operators such as |= and +=, string interpolation, the @csv, @tsv, @base64 and @uri formats and regular expression functions. Output can be pretty, compact or raw, with sorted keys. Input, slurp and null-input switches mirror the command-line flags.

How to use jq Filter Playground

  1. Paste the JSON, or tick the null input option to run a filter that needs no data.
  2. Type a filter such as .users | map(select(.age > 30) | .name).
  3. Read the results below, choose the output style and fix any error message the page shows.

Why use this tool?

Also known as

Frequently asked questions

Which parts of jq are not supported here?

input and inputs, modules, label and break, the ?// destructuring operator, the strptime date parser and a few rarely used builtins. Anything missing returns a message naming the function.

Why can results differ slightly from the real jq program?

Numbers are JavaScript doubles, so integers above 2^53 lose precision, and regular expressions use JavaScript syntax instead of Oniguruma. Objects with whole-number keys list them first.

How do I get one value per line, like jq -r?

Choose the raw text output style. Strings print without quotes, one result per line, which is handy for lists of names or for piping into other tools.

Is jq Filter Playground free?

Yes. jq Filter Playground on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.