Decimal to Hexadecimal Conversion

The hexadecimal (base 16) system is a positional numeral system that uses 16 symbols: the numbers 0-9 and the letters A-F. Hexadecimal is commonly used in computing, such as for color coding or memory addressing.

Live Conversion Example

Try converting between decimal and hexadecimal using our tool:

From Decimal to Hexadecimal

From Hexadecimal to Decimal

How to Convert from Decimal to Hexadecimal

To convert a number from decimal to hexadecimal, we divide the number by 16 and record the remainder. We repeat this process until the division results in zero. Then, we read the remainders in reverse order.

Example 1: Converting 255 to Hexadecimal

  1. 255 / 16 = 15 remainder 15 → record F
  2. 15 / 16 = 0 remainder 15 → record F

Thus, the result is: 25510 = FF16.

Example 2: Converting 26 to Hexadecimal

  1. 26 / 16 = 1 remainder 10 → record A
  2. 1 / 16 = 0 remainder 1 → record 1

Thus, the result is: 2610 = 1A16.

Conversion Table for Numbers 0 to 15

Decimal Hexadecimal
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 A
11 B
12 C
13 D
14 E
15 F