42 Octal to Hexadecimal

42 octal = 22 hexadecimal

42 written in hexadecimal is 22, the number 34 in everyday decimal.

42 octal = 22 hexadecimal

How to convert 42 to hexadecimal

Step 1: Octal to decimal

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

DigitPlace valueDigit × place
481 = 832
280 = 12

32 + 2 = 34

Step 2: Decimal to hexadecimal

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

DivisionQuotientRemainder (digit)
34 ÷ 1622
2 ÷ 1602

Result: 34 = 22 in hexadecimal.

About the number 34

  • 34 is an even number.
  • 34 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 42 in hexadecimal?

42 in octal is 22 in hexadecimal (the number 34 in decimal).