Base Converter
Convert numbers between any base from 2 to 36 – including binary, octal, decimal and hexadecimal – and see all common bases at a glance.
Interactive base converter
Enter a number, choose the base it is written in, then select the base you want to convert to. The tool converts both the integer and fractional part (if present) and also shows the value in the four most common bases.
You may use digits 0–9 and letters A–Z (for bases above 10). One decimal point is allowed for fractional values.
What is a number base?
A number base (or radix) is the number of distinct digits used to write numbers in a positional numeral system. In everyday life we mostly use base 10 (decimal), which has digits 0–9. Computers, however, naturally work in base 2 (binary).
In any base \(b\), digits run from 0 up to \(b - 1\). For bases above 10, we use letters A, B, C, … to represent values 10, 11, 12, and so on. For example, in base 16:
A = 10, B = 11, C = 12, D = 13, E = 14, F = 15
Place-value representation
Any number in base \(b\) can be written as a sum of powers of \(b\). For example, the decimal number 57 in base 10 can be written as:
57 = 5 × 10² + 7 × 10⁰
In base 2, the binary number 1011₂ represents:
1011₂ = 1 × 2³ + 0 × 2² + 1 × 2¹ + 1
× 2⁰ = 11₁₀
Integer part and fractional part
When a decimal point is present, the part to the left is the integer part, and the part to the right is the fractional part. In base \(b\), a number like
dₖ … d₂ d₁ d₀ . f₁ f₂ … fₙ
corresponds to
How base conversion works
Converting between bases typically happens in two conceptual steps:
- Convert the original representation to an internal decimal value.
- Convert that decimal value to the target base.
Step 1 – from base \(b\) to decimal
To convert from an arbitrary base \(b\) to decimal, you multiply each digit by its positional weight (a power of \(b\)) and sum everything. For example, converting 7F₁₆ to decimal:
7F₁₆ = 7 × 16¹ + 15 × 16⁰ = 7 × 16 + 15 =
127₁₀
Step 2 – from decimal to base \(b\)
To convert a decimal integer N to base \(b\), repeatedly divide by \(b\) and collect remainders:
- Divide N by \(b\). The remainder is the least significant digit.
- Replace N with the quotient and repeat until the quotient is 0.
- Read the remainders from last to first; this gives the digits in the new base.
For the fractional part, you do the opposite: repeatedly multiply by \(b\) and collect the integer part at each step.
Common number bases
- Binary (base 2): digits 0–1. Used internally by all digital hardware.
- Octal (base 8): digits 0–7. Historically used in some systems; still appears in permissions in Unix.
- Decimal (base 10): digits 0–9. The standard numeral system for everyday arithmetic.
- Hexadecimal (base 16): digits 0–9 and A–F. Very common in programming, memory addresses, color codes and networking.
Using this base converter effectively
- Enter the number exactly as it is written in its original base.
- Select the correct From base and To base.
- Click Convert number and review the main output and the quick “Binary–Octal–Decimal–Hex” panel.
- Compare the converter’s result with manual calculations to build confidence and intuition.
Base converter – FAQ
-101.11 in base 2 or
3A.F in base 16). The converter processes both
the integer and fractional parts.
8 in base 8 or G in
base 16). Correct the digit or change the base and try
again.