Hex Converter

How Hex Conversion Works

  • What is Hexadecimal (Base 16)?
    Hex uses 16 symbols: 0–9 and A–F.
    Each letter represents a value:
    A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

  • Hex → Decimal (Base 10)
    Step 1: Start from the right side of the number.
    Step 2: Multiply each digit by 16 raised to its position (starting at 0).
    Step 3: Add all results together.

    Example:
    1A3 = (1 × 16²) + (10 × 16¹) + (3 × 16⁰)
    = 256 + 160 + 3 = 419

  • Hex → Binary (Base 2)
    Step 1: Take each hex digit separately.
    Step 2: Convert each digit into its 4-bit binary value.
    Step 3: Join all binary groups together.

    Example:
    1 = 0001
    A = 1010
    3 = 0011
    So: 1A3 = 0001 1010 0011

  • Quick Rules
    • Decimal conversion = sum of (digit × power of 16)
    • Binary conversion = 4-bit lookup per hex digit
Copied!