fq
jq for binary formats
TLDR
SYNOPSIS
fq [options] [query] [file]
DESCRIPTION
fq is a tool for inspecting binary files using a jq-like query language. It can decode and query over 100 different binary formats including MP4, FLAC, JPEG, PCAP, ELF, and many more.
The tool provides a REPL with autocomplete, allowing interactive exploration of binary structures. It's useful for debugging, reverse engineering, and understanding file formats.
PARAMETERS
-d, --decode FORMAT
Decode as specific format-i, --interactive
Start interactive REPL-n, --null-input
Use null as input value-r, --raw-output
Output raw strings-c, --compact-output
Compact output (no pretty print)--help
Display help and exit--version
Display version and exit
USAGE
Basic inspection:
CAVEATS
Large files may consume significant memory. Some formats have incomplete support. Binary data output may require terminal with proper encoding support. Complex nested queries can be slow.
HISTORY
fq was created to bring the power of jq to binary data, making it easier to inspect and understand binary file formats without specialized tools.
SEE ALSO
[jq](https://stedolan.github.io/jq/), [xxd](https://linux.die.net/man/1/xxd), [hexdump](https://linux.die.net/man/1/hexdump), [binwalk](https://github.com/ReFirmLabs/binwalk)

