Loading calculator...
Loading calculator...
Convert hexadecimal numbers to decimal, binary, and octal, or convert hex color codes to RGB values.
Hexadecimal Conversion:
Each hex digit represents 4 binary bits (0-15)
Hex to Decimal: multiply each digit by 16^position and sum
Hex Color to RGB:
#RRGGBB: first 2 digits = Red, middle 2 = Green, last 2 = Blue
Each pair is a hex value from 00 to FF (0 to 255)
Hexadecimal is a base-16 number system using digits 0-9 and letters A-F. It is widely used in computing because each hex digit represents exactly 4 binary bits, making it a compact way to represent binary data.
Multiply each hex digit by 16 raised to its position power, then add the results. For example, FF = (15 x 16) + 15 = 240 + 15 = 255.
A hex color code is a 6-digit hexadecimal number representing a color in the form #RRGGBB, where RR is red (0-255), GG is green (0-255), and BB is blue (0-255).
#000000 represents black (0 red, 0 green, 0 blue) and #FFFFFF represents white (255 red, 255 green, 255 blue, the maximum for all channels).
Hexadecimal is compact and maps cleanly to binary. One byte (8 bits) is represented by exactly 2 hex digits. This makes it easy to read memory addresses, color codes, and binary data.