Hex to Decimal Calculator – Hexadecimal to Decimal

Convert hexadecimal (base 16) numbers to decimal (base 10) and binary.

About This Calculator

Convert hexadecimal (base 16) numbers to decimal (base 10) and binary. Use the calculator above for instant results.

Worked Examples

Example 1: FF

  • 15×16 + 15×1 = 255 | 0xFF = max byte

Answer: 255

Example 2: 1A4F

  • = 6,735 decimal

Answer: 6,735

Example 3: DEADBEEF

  • = 3,735,928,559 decimal | Common debug value

Answer: 3,735,928,559

Who Uses This Calculator?

💻
Programmers

Read hex values in code and memory.

🔧
Sysadmins

Interpret hex error codes.

🏫
CS Students

Number base conversion.

🖥️
Web Developers

HTML color hex codes.

Common Mistakes to Avoid

❌ Hex digits A-F

A=10, B=11, C=12, D=13, E=14, F=15. Hex uses 16 symbols (0-9, A-F).

❌ 0x prefix

0x indicates hexadecimal in most programming languages. 0xFF = 255.

Frequently Asked Questions

Hex to decimal?

Each digit × 16^position. 2AF = 2×256 + 10×16 + 15 = 687.

Hex colors in HTML?

#RRGGBB where each pair is a byte (00-FF = 0-255). #FF0000 = red. #000000 = black. #FFFFFF = white.

Why hex in programming?

One hex digit = 4 bits = 1 nibble. Two hex digits = 8 bits = 1 byte. Much more compact than binary.