首页
Tom Utilities

JSON 格式化

JSON 工具

美化并校验 JSON,支持可配置缩进、错误高亮和一键复制。

输入

结果

使用方法

How to format JSON

Paste or type JSON on the left, then press Format. Everything is processed locally in your browser.

  1. Paste your JSON into the input editor.
  2. Choose the indentation you prefer.
  3. Press Format and copy the result.

常见问题

Is my JSON uploaded to a server?

No. Formatting runs entirely in your browser with JavaScript, so your data never leaves your device.

Can it detect syntax errors?

Yes. If the JSON is invalid the tool shows the error and the position where parsing failed.