Skip to content
FiftyCalc Free calculators for all 50 states

Number Base Converter

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Convert a whole number between bases 2 to 36: binary, octal, decimal, hexadecimal and more.

Result

Sample figures

Result—

Decimal value —

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Number Base Converter

Number: type the text to use. Prefilled example: 11111111.

From base

From base: choose 2 (binary), 8 (octal), 10 (decimal), 16 (hexadecimal) or 36. Prefilled example: 2 (binary).

To base

To base: choose 2 (binary), 8 (octal), 10 (decimal), 16 (hexadecimal) or 36. Prefilled example: 16 (hexadecimal).

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number: type the text to use.
  2. From base: choose 2 (binary), 8 (octal), 10 (decimal), 16 (hexadecimal) or 36.
  3. To base: choose 2 (binary), 8 (octal), 10 (decimal), 16 (hexadecimal) or 36.
  4. Read the result: Result; the panel also shows Decimal value.

How this calculator works

The digits are read in the starting base (0-9, then A-Z for 10 to 35) and the exact value is rebuilt with arbitrary-precision integers, then written in the target base.

Worked example

Number11,111,111
From base2 (binary)
To base16 (hexadecimal)
ResultFF
Decimal value255

Frequently asked questions

What is 255 in binary?

11111111.

What is FF in decimal?

255.

Related calculators