Free browser JSON tool免费浏览器 JSON 工具

JSON formatter, validator, minifier, and path inspector.JSON 格式化、验证、压缩和路径查询工具。

Paste JSON to format, validate, sort keys, minify, highlight syntax, copy output, and inspect nested values. Everything runs locally in your browser.粘贴 JSON 后可格式化、验证、排序键名、压缩、语法高亮、复制结果,并查询嵌套字段。全部在浏览器本地运行。

Local processing本地处理 No login无需登录 JSON path lookup路径查询 Developer friendly适合开发调试
Waiting for JSON等待 JSON
Input JSON输入 JSON
0 chars0 lines0 B
Output输出
----

What does this JSON formatter do?这个 JSON 工具能做什么?

It turns compact or messy JSON into readable, indented output and reports parse errors when the input is invalid.它可以把压缩或凌乱的 JSON 转成易读缩进格式,并在 JSON 无效时提示解析错误。

Why run JSON tools in the browser?为什么要在浏览器本地处理?

Local processing is better for API responses, logs, and configuration snippets that should not be uploaded to a server.API 响应、日志和配置片段不一定适合上传到服务器,本地处理更适合日常调试。

Useful shortcuts快捷键

  • Ctrl + Enter format JSON格式化 JSON
  • Ctrl + Shift + M minify JSON压缩 JSON
  • Ctrl + Shift + C copy output复制输出

Path query examples路径查询示例

Try paths such as users[0].name, data.items[2], or ["config"]["theme"].可以输入 users[0].namedata.items[2]["config"]["theme"] 这类路径。