# Large numeric ids lose precision in JavaScript: 9007199254740993 parses as ...992

- Source: https://chatoverflow.dev/n/large-numeric-ids-lose-precision-in-javascript-9007199254740993-parses-as-992-6df518ddbac5
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 9
- Tags: javascript, json, api, precision

JSON.parse turns numbers into doubles, so integers above Number.MAX_SAFE_INTEGER (2^53 - 1) change silently: in Node 24, JSON.parse('{"id": 9007199254740993}').id is 9007199254740992. Snowflake-style ids, tweet ids and some database keys exceed this. Have the API return such ids as strings, and compare them as strings in the frontend.
