Binary ↔ Hexadecimal Converter

Convert between binary (base-2) and hexadecimal (base-16) number systems

How to Convert Between Binary and Hexadecimal

Binary to Hex

  1. Group binary digits into sets of four (starting from right)
  2. Convert each 4-bit group to its hex equivalent
  3. Combine hex digits for final result

Hex to Binary

  1. Convert each hex digit to 4 binary digits
  2. Combine all binary digits
  3. Remove leading zeros if needed

Binary-Hexadecimal Conversion Table

BinaryHexadecimalBinaryHexadecimal
0000010008
0001110019
001021010A
001131011B
010041100C
010151101D
011061110E
011171111F

Practical Examples

Binary to Hex Example

11010110 → 1101 0110 → D 6 → D6

Hex to Binary Example

A7 → A (1010) 7 (0111) → 10100111

Why Use Hexadecimal?

  • More compact than binary (1 hex digit = 4 binary digits)
  • Easier to read and less error-prone than long binary strings
  • Directly maps to bytes in computing (2 hex digits = 1 byte)
  • Widely used in memory addressing and color codes

Common Applications

  • Computer memory addressing
  • Assembly language programming
  • Network protocol analysis
  • Digital electronics debugging
  • Web color codes (e.g., #FF5733)
  • File formats and binary data inspection