fq 是一款把 jq 思路搬到二进制世界的命令行工具,用一条查询语句就能拆解、查看和切片各种二进制文件,内置大量格式解码器,还带结构化十六进制视图和交互式 REPL。适合逆向分析、协议调试、文件格式研究以及喜欢命令行折腾数据的开发者。
核心亮点:
- 沿用 jq 表达式语言,查询二进制像查 JSON 一样顺手
- 内置海量格式解码器,覆盖音视频、网络包、可执行文件等
- 提供结构化十六进制查看器,字节与位级切片拼接都支持
- 交互式 REPL 带自动补全,探索未知格式更高效
当前版本 v0.18.0(2026-08-25 发布),开源协议 MIT,GitHub 10,638 star。

核心信息
| 软件名称 | Fq(wader/fq) |
| 当前版本 | v0.18.0 |
| 更新日期 | 2026-08-25 |
| 开源协议 | MIT |
| 软件分类 | Windows 效率工具 |
| 关键词 | binary、cli、decode、go、golang、hexdump |
本次更新内容
- 文档提供网页、手册页等多种格式,并新增暗色模式,查阅更方便。
- 命令行参数与输入方式更贴近常用工具习惯,可直接从标准输入读取数据。
- 新增图像与三维模型等格式支持,部分图片格式的解码问题得到修正。
- 提升大文件解码速度,打开文件后的行为也更符合预期。
- 补充安装说明,方便更多系统用户快速上手。
查看官方英文更新日志(原文)
## Changes
- Improved documentation in more formats. #1346
- HTML version available at https://wader.github.io/fq/.
- Man page available at `doc/fq.1`.
- AsciiDoc source at `doc/fq.1.adoc`.
- jq compatibility: Add `$ARGS`, `--args` and `--jsonargs` support. #1321
```sh
$ fq -n --arg a a --argjson b 1 '$ARGS'
{
"named": {
"a": "a",
"b": 1
},
"positional": []
}
$ fq -cn '$ARGS' --args a b c
{"named":{},"positional":["a","b","c"]}
$ fq -cn '$ARGS' --jsonargs 1 2 3
{"named":{},"positional":[1,2,3]}
```
- jq compatibility: Using `-` as input filename reads from stdin. Previously leaving out any filename argument would be the only way to read from stdin. #1344
```sh
$ echo 123 | fq . -
123
```
- Add gaps for struct/array bitbufs and skip adding single empty gap. #1289
- Faster format options handling during decode. Will speed up decoding of formats that might use lots of sub-formats, for example big mp4 files. #1352 #1353
- `open` Make returned file value behave more properly as a binary. #1360
- Add Gentoo installation instructions. #1314 Thanks @kimjune01
## Format changes
- `avc_nalu` Remove redundant_pic_cnt name in nalu. #1292
- `avc_sei` Decode SEI recovery point. #1292
- `heif` Add High Efficiency Image Format decoder. #1336
- Generic item support
- Partial item decode for HEIC (HEVC) and AVIF (AV1)
- `mp4`
- Make stsd decode aware of qt/isom difference. #1305
- More correct and flexible probe via brands. #1365
- `stl` Add Standard Tessellation Language decoder. #1299 Thanks @knittl
- `webp` Fix incorrect decoding of size for lossless (vp8l). #1341 Reported by @xnuk
## Changelog
* 11543044 av1,safetensors,doc: Fix whitespace in field name
* b7340ad1 avc_sei,avc_nalu: Decode SEI recovery point and fix redundant_pic_cnt name in nalu
* b15e9e66 crypto: fix lint warning by using std sha3
* f88f180a decode: Add gaps for struct/array bitbuf
* 60351a5c decode: Fast path if no remain opts match format opts
* 07c982bc decode: Speed up and cache snake case result
* 882d3a41 doc,gha: Add workflow_dispatch
* 02a2aa55 doc,gha: Install correct debian package
* f02172d8 doc,gha: Run apt as root
* dd7593bd doc: Add dark mode
* c69f9804 doc: Add exit status section
* ac3b86e3 doc: Add man page and rework/improve documentation
* d8b42818 doc: Correctly fix style for some function names
* 9b4466d6 doc: darkmode: Better format option title color
* 22c18345 doc: Example and style fixes
* 6a8de262 doc: Fix style for some function names
* 0c1c7b94 doc: Improve examples, meta and highlighting
* 0f437a21 doc: man: Post-process output to compact lists a bit
* 5173a4a2 doc: Revert page test
* a90f6add doc: Try pages
* 2932f59e doc: Typos and improvements
* 9c14a698 doc: Update formats.svg
* d9018fad docs: add Gentoo installation instructions
* c332a031 fq: Modernize code for go 1.25
* 43e31a6f fq: Remove not very useful list all fo
下载地址
以下为官方原包,本站不二次打包;多个文件为不同包型,按需选择其中一个下载即可:
fq_0.18.0_windows_amd64.zip(便携版·解压即用 | 4.7 MB)
fq_0.18.0_windows_arm64.zip(便携版·解压即用 | 4.2 MB)
✅ 上方 SHA256 与官方发布值一致,可自行核对。
快速上手
- 解压下载好的压缩包,把其中的可执行文件放到系统 PATH 目录或任意方便调用的文件夹中。
- 打开命令提示符或 PowerShell,输入 fq 加文件名,即可查看该文件的十六进制结构视图。
- 用 fq d 加文件名,可自动识别并解码常见二进制格式,查看嵌套结构。
- 用 fq 加查询表达式和文件名,按 jq 语法筛选、切片或转换数据。
- 直接运行 fq 进入交互式 REPL,支持自动补全,可边输入表达式边查看结果。
提示:查询语法与 jq 一致,熟悉 jq 能更快上手筛选和转换。
讨论(0 条)