JQ Tools
jq is a command-line JSON processor for selecting, filtering, and transforming data. Use the browser playground for quick experiments, follow the tutorial to learn the language, or keep the cheatsheet nearby while working in a terminal.
jq works especially well in pipelines, where a compact filter can turn large API responses and configuration files into exactly the shape you need.
Open JQ PlaygroundChoose a starting point
Tools and learning
How-to guides
- Reuse jq Filters with import, include, and -f
- Uppercase and Lowercase Strings and Array Fields
- Convert Strings to Numbers in Fields and Arrays
- Pass Shell Variables to jq with --arg and --argjson
- Update Fields and Nested Values
- Check Whether a JSON Key Exists
- Convert JSON to CSV with jq
- Remove Duplicates from a JSON Array
- Extract Multiple Fields
- Remove Keys
- Concatenate fields in JSON
- Get the size of an array
- Capitalize a letter
- Perform math operations
- Output raw data
Common jq patterns
Three small filters that cover the core select, filter, and reshape workflow.
Select a field
Filter by a condition
Reshape an object