JSON FORMATTER & VALIDATOR

Format JSON, spot errors instantly.

Beautify messy JSON or minify it to one line; when the syntax is wrong you get the exact line and column.

Everything runs locally in your browser

What does this tool do?

Paste JSON from an API or a log, beautify it for reading or minify it for transport. The validator points to the exact line and column when something is wrong.

FAQ

Is my JSON uploaded?

No. Formatting, validation and download all happen in your browser and nothing is sent to a server.

Are comments or trailing commas allowed?

No. The tool follows the standard JSON spec, matching the behavior of most APIs and JSON.parse.

使用步骤How to use

  1. 粘贴 JSON,立刻看到格式化结果或错误位置Paste JSON to see formatted output or the error position
  2. 选择缩进空格数、是否压缩Choose indentation and whether to minify
  3. 一键复制或下载结果Copy or download the result

Further reading

觉得好用?Found it useful?