HomeWeb DevelopmentHex to Decimal Converter
🔢

Hex to Decimal Converter

Convert hexadecimal numbers to decimal, binary, and octal. Supports signed and unsigned values.

How to Use the Hex to Decimal Converter

  1. Select the conversion direction: Hex to Decimal, Hex to Binary, Hex to Octal, or Decimal to Hex.
  2. Enter your value in the input field. For hex inputs, use characters 0-9 and A-F.
  3. Click Convert to see the result in all number bases simultaneously.
  4. Results include decimal, binary, octal, and hexadecimal representations for reference.

Formula & Method

Hexadecimal to Decimal:
Decimal = sum(digit x 16^position)

Example: 0xFF = (15 x 16^1) + (15 x 16^0) = 240 + 15 = 255

Decimal to Hexadecimal:
Repeatedly divide by 16 and collect remainders (0-15, where 10=A, 11=B, ..., 15=F).

Hexadecimal to Binary:
Each hex digit maps to 4 binary bits: 0=0000, 1=0001, ..., F=1111

Hexadecimal to Octal:
Convert to decimal first, then convert decimal to octal by dividing by 8.

Examples

InputTypeDecimalBinaryOctalHex
FFHex255111111113770xFF
1A3FHex67191101000111111150770x1A3F
100Decimal10011001001440x64
DEADHex5700511011110101011011572550xDEAD
4096Decimal40961000000000000100000x1000

Frequently Asked Questions

What is hexadecimal?

Hexadecimal (base-16) is a number system that uses 16 symbols: 0-9 and A-F. It is commonly used in computing because it is a compact way to represent binary data. Each hex digit represents exactly 4 binary bits.

Why do programmers use hexadecimal?

Hex is more compact than binary and easier for humans to read. For example, the binary value 11111111 is FF in hex. Memory addresses, color codes (HTML/CSS), and MAC addresses all use hexadecimal notation.

How do I convert hex to decimal manually?

Multiply each digit by 16 raised to its position power (starting from 0 on the right), then sum the results. For 0xFF: (15 x 16^1) + (15 x 16^0) = 240 + 15 = 255.

What is the largest hex value this converter supports?

The converter supports up to 32-bit values (8 hex digits), which covers the range 0x00000000 to 0xFFFFFFFF (0 to 4,294,967,295 in decimal). This is sufficient for most programming and networking tasks.

People Also Ask

What is 0xFF in decimal?

0xFF in hexadecimal equals 255 in decimal. It is the maximum value of a single byte (8 bits), where all bits are set to 1.

How do you convert hex to binary?

Each hex digit maps to exactly 4 binary bits. 0=0000, 1=0001, ..., 9=1001, A=1010, B=1011, C=1100, D=1101, E=1110, F=1111. For 0xFF: F=1111, F=1111, so binary is 11111111.

What is 0x100 in decimal?

0x100 in hexadecimal equals 256 in decimal. It represents 16^2, which is one more than the maximum byte value (255).

Why does hex use letters A-F?

Hexadecimal is base-16, so it needs 16 symbols. After 0-9 (10 symbols), letters A-F provide the remaining 6 symbols: A=10, B=11, C=12, D=13, E=14, F=15.