Integer base converter
Convert a number between binary, octal, decimal, hexadecimal and any base up to 64.
Loading tool…
About the integer base converter
Converts a whole number between binary, octal, decimal, hexadecimal and any base up to 64, all in one pass. Arithmetic runs on BigInt, so values far beyond the 53-bit safe integer limit convert without losing precision.
Frequently asked questions
Does it handle very large numbers?
Yes. Conversion uses arbitrary-precision integers, so a 200-digit decimal converts to hexadecimal exactly. Floating point is never involved, which is where most naive converters lose digits.
What are bases above 36 for?
Compact identifiers. Base 62 and 64 pack more value into fewer characters, which is why URL shorteners and asset hashes use them. Above base 36 the digits become case-sensitive.