How to Use
- Select source base
Choose the base of the number you want to convert (2, 8, 10, 16, or custom).
- Enter the number
Type the number using digits valid for the selected base.
- View results
Click Convert to see the number in all major bases simultaneously.
What is a number base (numeral system)?
A number base (also called a radix or numeral system) defines how many symbols are grouped together before a digit carries over to the next position. The decimal (base 10) system we use every day relies on the ten digits 0 through 9 and carries over once it reaches 10.
Common number bases
- Binary (base 2): uses only 0 and 1. It is the fundamental unit computers use to process data through the on/off states of electrical signals.
- Octal (base 8): uses 0 to 7. It appears in Unix file permissions, such as 755.
- Hexadecimal (base 16): uses 0 to 9 and A to F. By packing four bits into a single digit, it expresses color codes, memory addresses, and MAC addresses concisely.
The same quantity simply looks different from one base to another, yet its value stays the same. For example, the decimal number 255 is 11111111 in binary and FF in hexadecimal.
How the conversion works
This converter first turns the input into a decimal value and then re-expands it into the target base.
decimal = Σ (digit value × base^position)
For example, converting the binary number 1011 to decimal:
1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 8 + 0 + 2 + 1 = 11
To convert a decimal number into another base, you take the remainders of repeated division by the target base and read them in reverse. 11 → hexadecimal: 11 = 0×16 + 11 → 11 is B → B. In the formula, the digit value is the figure in each position, and the position index increases by one starting from the rightmost digit (0).