Hex Converter

A hexadecimal converter translates hex values (base-16) to decimal (base-10), binary (base-2), and octal (base-8).

About this calculator

A hexadecimal converter translates hex values (base-16) to decimal (base-10), binary (base-2), and octal (base-8). Hexadecimal uses digits 0–9 and letters A–F, where A=10, B=11, C=12, D=13, E=14, F=15.

Hex is extensively used in programming for memory addresses, HTML color codes, IP addresses, and machine code because it is more compact than binary (each hex digit represents 4 binary bits).

Common uses

  • Convert HTML/CSS hex color codes to understand RGB values
  • Translate memory addresses in debugging
  • Convert MAC addresses and network values
  • Work with hexadecimal in assembly or low-level programming

Frequently asked questions

How do you convert hexadecimal to decimal?

Multiply each hex digit by 16 raised to its position power (from right, starting at 0), then sum the results. For example, hex 2A = 2×16¹ + 10×16⁰ = 32 + 10 = 42 in decimal.