Hexadecimal to Decimal Converter
Convert hexadecimal (base 16) numbers to decimal (base 10) instantly. Enter hex digits (0–9 and A–F) and get the decimal result with working shown.
Pro Tip: Need to convert between Decimal, Binary, Hex & Octal all at once?
Open All-in-One Converter
Hex to Decimal: How It Works
Each hex digit represents a value from 0 to 15. A=10, B=11, C=12, D=13, E=14, F=15. Each position has a weight of 16 raised to its position number (starting from 0 at the right).
Example: Convert 2AF to decimal A F (hex) 2 A F ↓ ↓ ↓ 2 10 15 (decimal digit values) × × × 256 16 1 (16² 16¹ 16â°) = = = 512+160+15 = 687
Why Hexadecimal?
Hex is useful because 1 hex digit = 4 binary bits, making it a compact shorthand for binary data. A byte (8 bits) can be represented as just 2 hex digits (00 to FF). Common in CSS colors (#FF5733), IPv6 addresses, memory dumps, Unicode code points (U+1F600), and machine code.
Frequently Asked Questions
What is FF in decimal?
Hex FF = 15×16 + 15×1 = 240 + 15 = 255 in decimal. This is the maximum value of one byte.
How do I convert hex to decimal?
Multiply each hex digit (from right) by 16 to the power of its position (0,1,2...). A=10, B=11...F=15. Sum all products.
What does 0x mean before a hex number?
"0x" is a programming prefix indicating hexadecimal. It's used in C, Java, JavaScript, Python etc. For example: 0xFF = hex FF = decimal 255. This tool accepts numbers with or without the 0x prefix.