About Number Base Converter
Type a whole number, say which base it is written in, and see it in binary, octal, decimal and hexadecimal at once, plus one more base of your choice up to 36. Prefixes such as 0x, 0b and 0o are understood, and spaces or underscores used to group digits are ignored.
Numbers are handled as exact big integers, so a 128-bit hash, a 256-bit key or a 1,000-digit number converts without losing a digit. Negative numbers keep their minus sign. Inputs of up to 20,000 digits are accepted.
How it works
- The digits are checked against the base you chose, so a 2 in a binary number or a g in a hexadecimal one is reported by name rather than silently skipped.
- The number is read into an exact arbitrary-size integer (JavaScript BigInt) and written out again in each base. Nothing is rounded at any size.
- Digits above 9 use the letters a to z, so base 16 uses a to f and base 36 uses the whole alphabet. Letters are read in either case.
Questions
Can it convert fractions such as 0.1?
No, only whole numbers. Many fractions that end in one base repeat forever in another (0.1 in decimal is endless in binary), so this tool keeps to integers, where every result is exact.
How are negative numbers shown?
With a minus sign in every base, such as −ff. It does not produce two’s complement bit patterns, which depend on a fixed word size.
Is there a size limit?
Inputs of up to 20,000 digits are accepted, far beyond any 64-bit or 256-bit value. Longer inputs are refused with a message so the page stays responsive.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.