31 in Hexadecimal
Decimal 31 equals 0x1F in hexadecimal.
31 in all number bases
Decimal31
Hexadecimal0x1F
Binary0001 1111
Octal37
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
31Hex
0x1FBinary
0b11111Octal
0o37How 31 converts from decimal to hexadecimal
Divide by 16 repeatedly and keep each remainder, then read the remainders from bottom to top:
31÷ 16 =1remainder15 → F
1÷ 16 =0remainder1
Result (remainders bottom to top): 1F
This tool runs entirely in your browser - nothing you enter is uploaded or stored.