Hex Converter
Convert hexadecimal numbers (base 16) to and from decimal, binary, and octal formats. Hexadecimal is widely used in programming for representing colors, memory addresses, and binary data in a more readable format. Uses digits 0-9 and letters A-F.
Decimal
Hexadecimal
Common Conversions
0
0x0
10
0xA
15
0xF
16
0x10
100
0x64
255
0xFF
256
0x100
65535
0xFFFF
Hex Digits Reference
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
A
10
B
11
C
12
D
13
E
14
F
15
FAQ
What is hexadecimal?
Hexadecimal (hex) is a base-16 number system using digits 0-9 and letters A-F (where A=10, B=11, C=12, D=13, E=14, F=15). One hex digit represents exactly 4 binary bits.
Why is hex used in programming?
Hex provides a compact way to represent binary data. It is commonly used for color codes (e.g., #FF5733), memory addresses, MAC addresses, and debugging binary data.
How do I convert hex to decimal?
Multiply each hex digit by 16 raised to its position power (starting from 0 on the right) and sum the results. For example, 1A in hex = 1x16 + 10x1 = 26 in decimal.