Convert
Number Base Converter
Convert between decimal, hex, binary, octal — or any base from 2 to 36. Powered by BigInt, so it stays exact for values far beyond 64-bit integers.
Convert
Convert between decimal, hex, binary, octal — or any base from 2 to 36. Powered by BigInt, so it stays exact for values far beyond 64-bit integers.
—
—
—
—
—
Prefixes like 0x, 0b, 0o and trailing underscores in JS literals are accepted. Output is exact for any size — no floating-point rounding.
Walkthrough
Use cases
Debugging binary protocols. Decode flag bits from a hex dump into binary to see which bits are set.
Color values. Turn a #RRGGBB color into its decimal channel values, or assemble hex from RGB numbers.
Huge numbers. Converting 128-bit UUIDs or cryptographic values where Number would lose precision — BigInt keeps every digit.
FAQ
JavaScript Numbers are exact only up to 2⁵³. BigInt is arbitrary precision, so converting a 128-bit hash or a 100-digit integer is exact in every digit.
Yes — a leading minus sign is accepted and carried through all bases. Two's-complement bit patterns are not emulated; negative values are shown with a minus sign.
This tool handles integers. Values like 3.14 are rejected with a clear message — use a calculator tool for fractional bases.
Related