Binary to Hex Converter
Convert any binary number (base 2) into hexadecimal (base 16) instantly using 4-bit nibble grouping, along with decimal and octal equivalents.
Common Binary to Hexadecimal Conversions
Quick lookup table for 4-bit nibbles, bytes, and common binary-to-hex values.
| Binary (Base 2) | Hex (Base 16) | Decimal | Octal |
|---|---|---|---|
| 0000 | 0 | 0 | 0 |
| 1010 | A | 10 | 12 |
| 1111 | F | 15 | 17 |
| 00010000 | 10 | 16 | 20 |
| 00101101 | 2D | 45 | 55 |
| 11111111 | FF | 255 | 377 |
| 000100000000 | 100 | 256 | 400 |
| 001111111111 | 3FF | 1023 | 1777 |
Complete Guide: How to Convert Binary to Hexadecimal
Converting a binary number (Base 2) to hexadecimal (Base 16) is widely used in software development, memory dumps, color codes, assembly language, and embedded systems because hexadecimal provides a compact, human-readable shorthand for long binary strings.
Why 4-Bit Grouping (Nibbles) Works
Since 16 = 2⁴, every single hexadecimal digit (0–9 and A–F) corresponds directly to a 4-bit binary group called a nibble. That means you do not even need an intermediate decimal step when converting between binary and hex.
- Step 1: Start from the rightmost bit of the binary number and group bits into sets of
4moving left. - Step 2: If the leftmost group has fewer than 4 bits, pad it on the left with leading zeros (
0). - Step 3: Convert each 4-bit nibble into its hexadecimal character (
0–9for values 0–9, andA–Ffor values 10–15).
Worked Example: Binary 101101 to Hexadecimal
Group 101101 into 4-bit nibbles from right to left: 0010 and 1101.
Here, 0010 equals 2 in hex, and 1101 equals 13 (which is D in hex). Combining both gives 2D.
Hex Letters A Through F Explained
Because standard digits only go up to 9, hexadecimal uses six letters to represent values 10 through 15:
A = 10 (1010), B = 11 (1011), C = 12 (1100), D = 13 (1101), E = 14 (1110), and F = 15 (1111).
Binary to Hexadecimal Frequently Asked Questions (FAQs)
What is 11111111 in hexadecimal?
11111111 (8 bits) equals FF in hexadecimal (and 255 in decimal).What is 1010 in hexadecimal?
1010 equals A in hexadecimal.What is 1111 in hexadecimal?
1111 equals F in hexadecimal.Why do programmers prefer hexadecimal over binary?
What if a binary string has fewer than 4 bits or isn’t a multiple of 4?
Are hexadecimal letters case-sensitive?
2d and 2D represent the same hexadecimal value; uppercase (A–F) is displayed here for clarity.