代码、数据与二维码工具

JSON格式化与压缩

原生JSON解析、缩进/紧凑输出与错误提示;数值精度有限。

优先本地处理无需注册隐私说明 ↗

使用步骤

如何使用

  1. Paste valid JSON up to 100,000 characters.
  2. Choose pretty-print or compact output.
  3. Format JSON, review the result, and copy it.

Data parsing only

This tool uses the browser JSON parser and never evaluates pasted text as code. It formats a parsed value and does not merge it into objects, avoiding prototype-related merge behavior.

Number precision boundary

JavaScript numbers cannot exactly represent every very large integer. If JSON contains an integer outside the safe range, formatting can change its numeric precision; keep such identifiers as JSON strings.

常见问题

你可能还想知道

Does it accept comments or trailing commas?

No. Those are not valid JSON and the parser reports an error.

Will it run code inside the text?

No. It parses JSON data only; it does not use eval.

Can it preserve huge integer IDs exactly?

Use strings for integer IDs outside JavaScript’s safe integer range.