# Convert Decimal 21 to Hex

(21)10 = (?)16. Decimal 21 in hex conversion provides the detailed information on what is the hexadecimal equivalent of (21)10 and the step-by-step work for how to convert the decimal 21 to its equivalent hex (base-16) number manually.

(21)10 in hex is equivalent to:
2110 = 1516

Hence,
(15)16 is the hex equivalent of (21)10

where,
2110 is the given decimal number,
10 in 2110 represents the base-10 or decimal number system,
1516 is the hex equivalent of the decimal 21,
16 in 1516 represents the base-16 or hexadecimal number system.

Important Notes: (21)10 in Hex
The below are some of the important notes to be remembered while converting the (base-10) decimal number 21 into a (base-16) hexadecimal equivalent.

1. The initial or first remainder while performing 21 MOD-16 operation is a Least Significant Bit (LSB).
2. The last remainder while performing 21 MOD-16 operation is a Most Significant Bit (MSB).
3. Find the equivalent hex number for each remainders of 21 MOD-16 operation before arranging the numbers from MSB to LSB to find the hex equivalent.
4. The remainders of 21 MOD-16 operation in hex equivalents should be written from MSB to LSB to form the hex equivalent for the given decimal number (21)10.

For decimal values other than 21, use this below tool:

## How-to: What is (21)10 in hex?

The below step-by-step solution shows how to convert (21)10 to its equivalent hexadecimal number. Represent each remainders of 21 MOD-16 operation in hex equivalents and arranging them from MSB to LSB produces the hex equivalent of 21.

Solved Example:
What is the hex equivalent of 21?

step 1 Observe the input parameters, values and what to be found:

Input values:
Decimal Number = (21)10

What to be found:
What is the hexadecimal value of decimal number 21?
(21)10 = (?)16

step 2 Perform successive MOD-16 operation for decimal 21 until the quotient becomes 0, and mark the initial remainder as LSB and the final remainder as MSB as like the below:

Successive MOD-16 Operation for 21
 21 MOD-16 21 / 16 = 1 Remainder is 5 → LSB 1 MOD-16 1 / 16 = 0 Remainder is 1 → MSB

step 3 Use the below table to find the equivalent hex representation for each remainders of successive 21 MOD-16 operation:
 Decimal: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Hex: 1 2 3 4 5 6 7 8 9 A B C D E F

Decimal 5 in hex is 5 → LSB
Decimal 1 in hex is 1 → MSB

step 4 Write the remainders of 21 MOD-16 operation in hex equivalents from MSB to LSB produces the equivalent hex (base-16) number for decimal (base-10) 21:
= 15
(21)10 = (15)16

Therefore,
the hex equivalent of 21 is (15)16. 