Base 10 to Base 16

Decimal to Hexadecimal Converter

Divide the decimal number by 16 repeatedly, recording remainders. Remainders from 10 to 15 map to letters A through F. Reverse the order of remainders to get the hexadecimal value.

Allowed: 0–9
base 10
Examples:
Hexadecimal Result (Primary Target)base 16
F
Binary (base 2)
1111
Octal (base 8)
17

Step-by-Step Calculation Steps

Successive Division Algorithm
Divide the decimal number repeatedly by 16 and record the remainders in reverse order (bottom to top):
Division Steps
15 ÷ 16 = 0 with remainder 15 (hex 'F')
Result
Reading remainders from last to first gives F in Hexadecimal.

How to Convert Decimal to Hexadecimal

Divide the decimal number by 16 repeatedly, recording remainders. Remainders from 10 to 15 map to letters A through F. Reverse the order of remainders to get the hexadecimal value.

Conversion Formula / Rule
Repeatedly divide by 16: n = 16q + r, where r ∈ {0..9, A..F}

Worked Example: 479 (Decimal) to Hexadecimal

Problem Convert 479 (base 10) into base 16
Step-by-Step Solution
  1. 479 ÷ 16 = 29 remainder 15 (hexadecimal "F")
  2. 29 ÷ 16 = 1 remainder 13 (hexadecimal "D")
  3. 1 ÷ 16 = 0 remainder 1 (hexadecimal "1")
  4. Read remainders bottom to top: 1DF₁₆
Final Result 1DF (Hexadecimal)

Quick Conversion Reference Table (0–15)

Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):

Decimal (10) Binary (2) Octal (8) Hexadecimal (16)
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F

Image preview

Fit