Number 171 in hexadecimal

Decimal to hex converter
Decimal Number to convert

What is number 171 in hex?

Answer

Decimal number 171 in hexadecimal is
AB

0xAB in code · 2 hex digits

Base 16: digits 0–9 and A–F (A = 10 … F = 15); each place is worth a power of 16.

Divide by 16, keep the remainder
divisionquotientremainder
171 ÷ 161011 = B
10 ÷ 16010 = A

↑ Read the remainders from bottom to top: AB

See Also

FAQ

What is number 171 in hex?

Decimal number 171 in hexadecimal is AB

What is 171 in binary?

171 in binary is 10101011: each hex digit of AB is 4 bits — A = 1010, B = 1011.

How is 171 written in code?

In code (C, JavaScript, Python) hexadecimal AB is written with the 0x prefix: 0xAB.