Binary ↔ Hexadecimal Converter

Free online binary to hex and hex to binary converter. Convert between base-2 and base-16 instantly.

💡
Tip: Each hex digit maps to exactly 4 binary bits. Try 1111 = F, 1010 = A.
💡 Definition

Binary ↔ Hex Relationship

  • Hexadecimal is a compact representation of binary.
  • Every 4 binary digits (a nibble) map to exactly one hex digit.
  • This makes hex the preferred shorthand for binary data in computing.
📖 How to use

Step by Step

  • Enter binary (0s and 1s) on the left
  • Hex equivalent appears on the right
  • Or enter hex to see binary
  • Click ⇄ to swap values
🎯 Use cases

When to use

  • Reading memory dumps and hex editors
  • Network packet analysis
  • Embedded systems programming
  • Understanding color codes (RGB binary → hex)

Frequently Asked Questions

How do you convert binary to hex manually?
Group binary digits into sets of 4 from right to left, then convert each group. Example: 1101 0101 → D5. If the leftmost group has fewer than 4 digits, pad with leading zeros.
Why is binary to hex so clean?
Because 16 is a power of 2 (2⁴ = 16), each hex digit perfectly represents 4 bits. This mathematical relationship makes conversion simple and lossless.