What is 42 in hex?
42 in decimal equals 2A in hexadecimal.
Step-by-step working
| Division | Quotient | Remainder (hex) |
|---|---|---|
| 42 ÷ 16 | 2 | A |
| 2 ÷ 16 | 0 | 2 |
How it works
Divide 42 by 16 repeatedly, writing down each remainder as a hex digit, then read the remainders from bottom to top.
Convert any value with our free decimal to hex converter — no sign-up needed.