CompleteSEOTools
Home › Unit Converters › Number Base Converter

Number base converter

Convert a number from any base between 2 and 36 into binary, octal, decimal, hexadecimal and more.

About Number Base Converter

Type a number, choose the base it is written in, and see it in bases 2, 8, 10, 16, 32 and 36 at once, plus one more base of your choice. Digits beyond 9 are the letters a to z. The whole part is handled with exact big-integer arithmetic, so a 200 digit number comes out right. A fractional part is converted too, and you decide how many digits to keep after the point.

  • Reading a hex value from a debugger as decimal.
  • Writing a number in binary for a bit mask.
  • Checking homework on positional number systems.
  • Converting a very large number that a normal calculator would round.

How to use Number Base Converter

1

Step 1

Type the number and pick the base it is in.

2

Step 2

Read the result in the common bases, or choose an extra target base.

3

Step 3

Copy the row you need.

Good to know

  • A fraction that ends in one base may never end in another. 0.1 in decimal is a repeating pattern in binary, so it is cut after the number of digits you choose, not rounded.
  • Prefixes 0x, 0b and 0o are accepted when they match the chosen base. Spaces and underscores are ignored.
  • Negative numbers keep their minus sign. They are not shown in two's complement.

Common questions

What are the digits in base 36?

The ten digits 0 to 9 followed by the letters a to z, so z stands for 35.

Is the conversion exact for big numbers?

Yes for the whole part. It uses arbitrary-size integers, so there is no rounding at any length up to 10,000 digits.

Why does a fraction get cut off?

Many fractions have infinitely many digits in another base. The page shows the digits up to your limit and marks the cut with three dots.