EditSafely

Run jq

Execute a jq query on a JSON data structure. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

Options

How to use Run jq

  1. 1. Paste your JSON. Put the JSON document you want to query into the input pane. This is the data your jq query will run against, just as if you had piped it into the jq command.
  2. 2. Write your jq query. Enter a jq expression in the jq query field, such as .users[].name to pull a field out of every item in an array, or any other filter you would normally run on the command line.
  3. 3. Adjust the output format. Turn on Compact output (-c) to get results on a single line instead of pretty-printed, and Raw strings (-r) to print string results without surrounding quotes.
  4. 4. Copy the query result. Copy the output produced by your jq expression and use it wherever you needed the filtered or transformed data, without having jq installed locally.

When to use Run jq

Run jq lets you execute a jq query against a JSON document directly in the browser. It is for anywhere you need jq's filtering power, either because jq isn't installed, or you just want to try an expression quickly before committing it to a script.

  • Extracting a field in CI without jq installed. A CI runner doesn't have jq available and installing it isn't worth the setup time for a one-off task. Run the query here and copy the result into the pipeline output.
  • Testing a filter before adding it to a script. You want to confirm a jq expression produces the output you expect before hardcoding it into a bash script or Makefile that will run unattended.
  • Reshaping a JSON export for a spreadsheet. An exported JSON file has nested data, and you need a flat list of specific fields to paste into a spreadsheet. A short jq query extracts exactly that.
  • Debugging a jq expression from a forum answer. You found a jq one-liner in a Stack Overflow answer and want to check it actually does what it claims against your own JSON before trusting it in production.

Examples

Extract names with a query

Input

{"users": [{"name": "Ada", "age": 36}, {"name": "Grace", "age": 45}]}

Output

Query [.users[].name] returns:
"Ada"
"Grace"

About the Run jq tool

Run jq is a free online tool that works entirely inside your web browser. Execute a jq query on a JSON data structure. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 90 JSON utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 3 settings, including jq query, Compact output (-c) and Raw strings (-r), and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.

Frequently asked questions

Does Run jq cost anything?

Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All JSON Tools