Binary, Hex & Number Base Converter

A number base converter rewrites a whole number in another base. Computers use binary (base 2) and hexadecimal (base 16), while people mostly use decimal (base 10). This converter handles bases 2 to 36 exactly, even for very long numbers, and shows both the place-value method and the repeated-division method.

Try:

How to use the binary, hex & number base converter

  1. Type the number, such as 2026 or FF.
  2. Choose the base it is written in and the base you want.
  3. Press Calculate to see the conversion and the steps.

Formula

dkbk+⋯+d1b+d0d_k b^k + \cdots + d_1 b + d_0

Worked example: 2026 → binary

  • Number: 2026
  • From base: Decimal (10)
  • To base: Binary (2)

✓ Answer checked

202610=1111110101022026_{10} = 11111101010_{2}
Decimal value
2026
Binary
11111101010
Hexadecimal
7EA
Step-by-step working (1 step)
  1. Divide repeatedly by 2 Repeated division

    Keep dividing and record the remainders; read them from bottom to top.

    2026÷2=1013 r 01013÷2=506 r 1506÷2=253 r 0253÷2=126 r 1126÷2=63 r 063÷2=31 r 131÷2=15 r 115÷2=7 r 17÷2=3 r 13÷2=1 r 1⋮\begin{gathered}2026 \div 2 = 1013 \text{ r } 0\\1013 \div 2 = 506 \text{ r } 1\\506 \div 2 = 253 \text{ r } 0\\253 \div 2 = 126 \text{ r } 1\\126 \div 2 = 63 \text{ r } 0\\63 \div 2 = 31 \text{ r } 1\\31 \div 2 = 15 \text{ r } 1\\15 \div 2 = 7 \text{ r } 1\\7 \div 2 = 3 \text{ r } 1\\3 \div 2 = 1 \text{ r } 1\\ \vdots\end{gathered}
How this was checked
  • ✓ Reading 11111101010 in base 2 gives back 2026.

Frequently asked questions

What is 2026 in binary?

11111101010.

What is FF in decimal?

255, because F = 15 and 15 × 16 + 15 = 255.

Why does hexadecimal use letters?

Base 16 needs 16 digits, so A to F stand for 10 to 15.

Related calculators

Related guides