Base 2 to Base 16

Binary to Hexadecimal Converter

Hexadecimal directly corresponds to 4-bit binary chunks (nibbles). Group bits into sets of 4 from right to left, then map each 4-bit nibble into a single hex character (0–9, A–F).

Allowed: 0, 1
base 2
Examples:
Hexadecimal Result (Primary Target)base 16
F
Octal (base 8)
17
Decimal (base 10)
15

Step-by-Step Calculation Steps

Bit Grouping Method (4 bits per digit)
Group binary digits in sets of 4 from right to left (padded with leading zeros if needed):
Grouped Bits
1111
Hexadecimal Digits
F = F

How to Convert Binary to Hexadecimal

Hexadecimal directly corresponds to 4-bit binary chunks (nibbles). Group bits into sets of 4 from right to left, then map each 4-bit nibble into a single hex character (0–9, A–F).

Conversion Formula / Rule
Group into 4-bit nibbles: (b₃b₂b₁b₀)₂ = (b₃×8 + b₂×4 + b₁×2 + b₀×1)₁₆

Worked Example: 11011111 (Binary) to Hexadecimal

Problem Convert 11011111 (base 2) into base 16
Step-by-Step Solution
  1. Split into 4-bit nibbles: [1101] [1111]
  2. Convert first nibble: 1101₂ = (8 + 4 + 0 + 1) = 13 = D in hex
  3. Convert second nibble: 1111₂ = (8 + 4 + 2 + 1) = 15 = F in hex
  4. Combine hexadecimal characters: DF₁₆
Final Result DF (Hexadecimal)

Quick Conversion Reference Table (0–15)

Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):

Decimal (10) Binary (2) Octal (8) Hexadecimal (16)
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F

Image preview

Fit