Skip to content
ForceConversion

Popular tools

Decimal to Hexadecimal Converter

Convert decimal numbers to hexadecimal. Decimal values become hexadecimal for web colors, memory addresses, character codes and register values.

Decimal to Hexadecimal converter

Whole numbers. Spaces, underscores and the prefixes 0b, 0o and 0x are accepted.

Result

Binary
—
Octal
—
Decimal
—
Hexadecimal
—

How to convert decimal to hexadecimal

Divide the number by 16, write down the remainder, and repeat with the quotient until it reaches 0. Read the remainders from last to first to get the hexadecimal digits.

Example: 156 (decimal) to hexadecimal

Dividing 156 by 16
DivisionQuotientRemainder
156 ÷ 169C
9 ÷ 1609

Remainders from last to first: 9C. So 156 = 9C in hexadecimal.

Examples

  • 10 (decimal) = A (hexadecimal)
  • 156 (decimal) = 9C (hexadecimal)
  • 255 (decimal) = FF (hexadecimal)
  • 1000 (decimal) = 3E8 (hexadecimal)

Decimal to Hexadecimal conversion table

Decimal to Hexadecimal
Decimal (base 10)Hexadecimal (base 16)
00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
2014
3220
5032
6440
10064
1277F
12880
255FF
256100
512200
10003E8
1024400

The table lists the same whole numbers for every pair of bases.

Frequently asked questions

What is 255 in hexadecimal?
255 in decimal is FF in hexadecimal.
How do I convert decimal to hexadecimal by hand?
Divide the number by 16, write down the remainder, and repeat with the quotient until it reaches 0. Read the remainders from last to first to get the hexadecimal digits.
What digits does decimal use?
Decimal uses the digits 0 to 9. Decimal is the everyday number system for counting, money and measurement.
What is hexadecimal used for?
Hexadecimal writes bytes compactly: web colors (#FF8800), memory addresses, MAC addresses and character codes all use it.