Decimal to Hexadecimal Converter

Convert decimal (base-10) numbers to hexadecimal (base-16) instantly. Hex is widely used in programming for memory addresses, color codes, and data representation.

Common Values

InputHexadecimal
00
10a
15f
1610
311f
3220
6440
10064
1277f
12880
255ff
256100
512200
10003e8
1024400
40961000
65535ffff

How It Works

To convert decimal to hexadecimal, repeatedly divide by 16 and record the remainders. Remainders 0-9 stay as digits; remainders 10-15 become letters A-F. For example, 255: 255÷16=15 R15(F), 15÷16=0 R15(F) — reading upward gives FF. Hex is compact: two hex digits represent exactly one byte (0-255).

Worked Examples

DecimalHexadecimal
00
10a
15f
1610
311f
3220
255ff
256100
40961000
65535ffff

Related Conversions

Frequently Asked Questions