BigIntBaseline · Widely available
The BigInt JavaScript type represents integers of any size, including integers too large for the primitive Number type.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 16, 2020. Widely available since Mar 16, 2023.
Browser support
DesktopChrome
1–66Not supported
67+Supportedsince May 29, 2018
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–67Not supported
68+Supportedsince Jul 9, 2019
Current: 157Safari
1–13.1Not supported
14+Supportedsince Sep 16, 2020
Current: 27MobileChrome Android
18–66Not supported
67+Supportedsince May 31, 2018
Current: 155Firefox Android
4–67Not supported
68+Supportedsince Jul 9, 2019
Current: 157Safari iOS
1–13.4Not supported
14+Supportedsince Sep 16, 2020
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: BigInt.
Feature detection
JS · check before using
if (typeof BigInt !== "undefined") {
// BigInt is available
}Specification
Usage share
Sub-features
Support for each part of the feature (6). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| BigInt | 67 | 79 | 68 | 14 | 67 | 68 | 14 |
| BigInt.BigInt | 67 | 79 | 68 | 14 | 67 | 68 | 14 |
| BigInt.asIntN | 67 | 79 | 68 | 14 | 67 | 68 | 14 |
| BigInt.asUintN | 67 | 79 | 68 | 14 | 67 | 68 | 14 |
| BigInt.toString | 67 | 79 | 68 | 14 | 67 | 68 | 14 |
| BigInt.valueOf | 67 | 79 | 68 | 14 | 67 | 68 | 14 |