Convert a very large integer
Turn a decimal ID beyond the safe Number range into hexadecimal or base36 exactly.
Guide
The number base converter parses base 2–36 digits one at a time itself and accumulates a BigInt, so integers are not limited by JavaScript's 53-bit safe integer range. Automatic mode recognises base 16, 2 and 8 from the 0x, 0b and 0o prefixes only; without a prefix it assumes decimal.
Updated 2026-09-102 min read
The number base converter parses base 2–36 digits one at a time itself and accumulates a BigInt, so integers are not limited by JavaScript's 53-bit safe integer range. Automatic mode recognises base 16, 2 and 8 from the 0x, 0b and 0o prefixes only; without a prefix it assumes decimal.
| Input | Output | Notes |
|---|---|---|
255 |
FF |
Decimal to base 16 |
0b1111 in automatic mode |
15 | Binary detected automatically |
-42 |
-2A |
A minus sign plus the magnitude |
FF without 0x is still read as decimal and reports an illegal character, so base 16 has to be chosen manually.Turn a decimal ID beyond the safe Number range into hexadecimal or base36 exactly.
Expand a 0b or 0x integer into decimal to confirm a configuration or protocol field value.
The implementation parses it as a signed BigInt value from the start and only puts a - in front of the magnitude when formatting; there is no notion of bit width.
Yes, using the digit characters 0–9 and a–z.
Integers are computed locally in the browser with BigInt; nothing is uploaded and nothing is saved.
Updated 2026-09-10
Convert between any base from 2 to 36 with big-number support; quick binary/octal/decimal/hex
Computed with BigInt, so integers of any size keep full precision
Detected as base 10 .