JSON 格式化
美化并校验 JSON,支持可配置缩进、错误高亮和一键复制。
输入
结果
使用方法
How to format JSON
Paste or type JSON on the left, then press Format. Everything is processed locally in your browser.
- Paste your JSON into the input editor.
- Choose the indentation you prefer.
- 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.