JSON Formatter & Validator

Big numbers in JSON lose precision: 12345678901234567890 becomes 12345678901234567000

Why JSON.parse rounds large integers such as IDs, how to spot it, and safe ways to keep every digit.

Error messages you may see

JSON.parse result{"id":12345678901234567000}
Python json.loads{'id': 12345678901234567890}
This tool{"id":12345678901234567890}

Why it happens

The JSON is valid, but JavaScript stores every number as a 64-bit float, so integers above 9007199254740991 (Number.MAX_SAFE_INTEGER) are silently rounded. IDs from databases or payment systems are often this large. Python keeps big integers exactly.

JSON

{"id": 12345678901234567890}

How to fix

Send large IDs as strings ("id": "12345678901234567890"), or parse them with a library that supports BigInt, such as json-bigint. This formatter keeps the original digits, so you can check what the server really sent.

Fixed

{"id": "12345678901234567890"}

Open this example in the JSON formatter →

Other common JSON errors