十六进制转十进制转换器公式

Hex to Decimal Converter

How It Works

Hexadecimal (base-16) uses digits 0-9 and A-F (where A=10, B=11, C=12, D=13, E=14, F=15). Enter the numeric value of each hex digit (0-15).

Each position represents a power of 16:

  • Digit 0: 16^0 = 1
  • Digit 1: 16^1 = 16
  • Digit 2: 16^2 = 256
  • Digit 3: 16^3 = 4096
  • 计算示例

    Convert hex 00FF (0, 0, 15, 15) to decimal.

    1. 0×4096 + 0×256 + 15×16 + 15×1
    2. = 0 + 0 + 240 + 15
    3. = 255 in decimal