Number bases

Decimal to Hexadecimal Converter

Convert decimal numbers to hexadecimal instantly, with the step-by-step method and a reference table.

FF

Whole numbers of any size are supported (exact big-integer arithmetic).

How to convert decimal to hexadecimal

Divide the decimal number by 16 repeatedly, writing down each remainder. Read the remainders from the last to the first.

Converting 156 to hexadecimal
DivisionQuotientRemainder
156 ÷ 169C
9 ÷ 1609

Reading the remainders upward gives 156₁₀ = 9C₍16₎.

About the number systems

Decimal

Base 10 is the everyday number system with digits 0–9; each position is worth ten times the one to its right.

Hexadecimal

Base 16 uses 0–9 and A–F (A = 10 … F = 15). One hex digit is exactly four bits, so two hex digits describe a byte — used for colours (#FF8800), memory addresses and checksums.

Decimal to hexadecimal table

Decimal to hexadecimal
DecimalHexadecimal
00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
311F
3220
633F
6440
10064
1277F
12880
255FF
256100
10003E8
1024400
40961000
65535FFFF

Frequently asked questions

How do I convert decimal to hexadecimal?

Divide the decimal number by 16 repeatedly, writing down each remainder. Read the remainders from the last to the first. Converting 156 to hexadecimal Division Quotient Remainder 156 ÷ 16 9 C 9 ÷ 16 0 9 Reading the remainders upward gives 156₁₀ = 9C ₍16₎.

What is 255 in hexadecimal?

255 (decimal) = FF in hexadecimal.

Can I convert very large numbers?

Yes. The converter uses exact big-integer arithmetic, so there is no rounding even for long inputs.

Try “psi to bar”, “cups”, “binary” or “5 ft in cm”.