Format, minify and validate JSON while preserving the exact text of numbers.
Local processing
Workspace
0 characters
Read only
Ready. Enter your content, then choose an action.
◇ Content is processed in this browser onlyInput is not saved automatically
HOW TO USE
How to use
Paste JSON and choose Format JSON for two-space indentation, or Minify to remove whitespace outside strings. Objects, arrays and valid JSON primitive values are supported.
Example
Input {"id":9007199254740993} keeps the complete number 9007199254740993 in the output.
GOOD TO KNOW
Keep in mind
Use double quotes for keys and strings. Comments and trailing commas are not supported. Formatting preserves number tokens, including integers beyond JavaScript’s safe integer range.
Common questions
Why does validation fail? Single quotes, missing commas and JavaScript values such as undefined are common causes. Use the error location to inspect the source.