跳转到主要内容
Develop Tools

JSON 格式化・压缩・语法检查工具

在浏览器中格式化、压缩并检查 JSON 语法的免费工具。支持保留大整数,并可查看行号、错误位置和重复键。

JSON input and conversion

It supports pasting text and selecting/dropping .json files.

输入 JSON

直接输入
0 个字符

转换结果

0 个字符

Please enter JSON or select a file.

关于此工具

You can format JSON in API responses, configuration files, and logs for readability and check for syntax errors.

支持的功能

  • JSON formatting, compression, syntax checking
  • 2/4/8 spaces or tabs, LF/CRLF
  • Error display with rows and columns, duplicate key warning
  • Preserves large integers and exponential notation without converting them into strings

使用方法

  1. Paste the JSON or open the .json file.
  2. Select indentation and line breaks.
  3. Performs formatting, compression, and syntax checking.
  4. Copy

限制事项

Privacy: 输入内容和处理结果仅在浏览器中处理,不会发送或保存到 Develop Tools 的服务器。

关于此工具

You can format JSON in API responses, configuration files, and logs for easy reading and see lines and columns for syntax errors.

支持的功能

  • JSON formatting, single line compression, syntax checking
  • 2/4/8 spaces and tabs, LF/CRLF, trailing line feed
  • Line numbers, syntax coloring, duplicate key warnings, lexical preservation of large integers

使用方法

  1. Paste the JSON or select and drop the .json file.
  2. Select the indent width, line break code, and trailing line break.
  3. Perform formatting, compression, syntax checking, and copy or save the results as needed.

限制事项

  • JSON5 containing comments, trailing commas, and single quotes is not supported.
  • The size that can be processed depends on the available memory of the device and browser.

隐私: 所选文件以及转换、分析结果仅在浏览器中处理,不会发送或保存到 Develop Tools 服务器。