Boneyard Tools

Number Base Converter

Convert a whole number from one base to another, anywhere from base 2 to base 36. Type a value, pick the base it is in and the base you want, and read the result instantly. Big numbers convert exactly because the math uses arbitrary precision.

How to convert between number bases

  1. Type the number you want to convert in the input field. Digits use 0-9 then a-z, and you can include a leading minus for negatives.
  2. Choose the base your number is currently written in (the from base) and the base you want to convert it to (the to base).
  3. Read the converted result and the binary, octal, decimal and hex breakdown, then copy any value with one click.

Examples

Decimal to hexadecimal

255 from base 10 to base 16
ff

Binary to decimal

11111111 from base 2 to base 10
255

Frequently asked questions

Which bases does this converter support?

Any base from 2 to 36. That covers the common ones (binary base 2, octal base 8, decimal base 10, hexadecimal base 16) and every base in between. Base 36 is the largest that fits using the digits 0-9 followed by the letters a-z.

How are digits above 9 written?

Bases larger than 10 use letters after the digit 9: a is 10, b is 11, and so on up to z which is 35. Input is case-insensitive, so FF and ff are read the same, and results are shown in lowercase.

Can it handle very large numbers?

Yes. The conversion uses arbitrary-precision integers (BigInt), so numbers with dozens or hundreds of digits convert exactly with no rounding or loss of precision, unlike calculators that rely on floating point.

Does it support negative numbers and zero?

Yes. A single leading minus sign marks a negative value and is carried through to the result, so -10 in base 10 becomes -1010 in base 2. Zero converts to 0 in every base.

Why do I get an error about an invalid digit?

Every digit must be legal for the base you chose. For example 2 is not a valid binary digit, and g is not a valid hexadecimal digit. Check that your input only uses digits allowed in the from base.

Is my data private?

Yes. The conversion runs entirely in your browser. Nothing you type is uploaded, logged or stored anywhere.

Related tools