21 Hexadecimal to Ternary

21 hexadecimal = 1020 ternary

21 written in ternary is 1020, the number 33 in everyday decimal.

21 hexadecimal = 1020 ternary

How to convert 21 to ternary

Step 1: Hexadecimal to decimal

Multiply each digit by 16 to the power of its position (0 on the right), then add:

DigitPlace valueDigit × place
2161 = 1632
1160 = 11

32 + 1 = 33

Step 2: Decimal to ternary

Divide by 3 repeatedly and keep the remainders. Reading the remainders from the last one to the first gives the ternary digits:

DivisionQuotientRemainder (digit)
33 ÷ 3110
11 ÷ 332
3 ÷ 310
1 ÷ 301

Result: 33 = 1020 in ternary.

About the number 33

  • 33 is an odd number.
  • 33 is not a prime number.
  • Written in binary it needs 6 bits, so it fits in one byte.

Reverse conversion

Frequently asked questions

What is 21 in ternary?

21 in hexadecimal is 1020 in ternary (the number 33 in decimal).