JSON formatter
Format, validate and minify JSON with precision.
Loading / 加载中
Your input is processed on this device.
How to use
Paste JSON, choose an indentation and select Format or Minify. Validation reports the first error with its line and column. Number tokens retain their original precision. Comments and trailing commas are rejected.
Example
{"id":9007199254740993} retains the exact ID after formatting.
Good to know
Where is my data processed?
Your browser performs the operation. Input stays in page memory. Markdown draft saving is available when you explicitly enable it on this device.
Will large integers keep their precision?
Formatting and minifying preserve the original number tokens, including integers such as 9007199254740993 and long decimal values.
Which JSON syntax is accepted?
Use strict JSON with double-quoted keys and strings. Comments and trailing commas produce a validation error with its line and column.