Math
Binary to Hex Converter
Enter a binary number and the converter splits it into 4-bit groups starting from the right, pads the leftmost group with zeros, and reads each group as one hex digit.
The grouping table shows every step, and the decimal and octal values are shown for checking.
Digits 0 and 1 only. A binary point is allowed (1101.101). Spaces, underscores, or a 0b prefix are fine.
Try an example
Result
Converted value
—
- Decimal
- —
- Binary
- —
- Hexadecimal
- —
- Octal
- —
Student quick launch
Grade planning, algebra checks, and formulas students reach for most.
Study path
Use this calculator with
Follow these when you want the formula behind the answer, a short lesson, or nearby tools in the same topic.
What the binary to hex converter solves
Long binary strings are hard to read and easy to miscount. Hexadecimal packs four bits into one digit, so a 32-bit value becomes eight characters. Converting is pure grouping: cut the bits into nibbles from the right, and replace each nibble with its hex digit. This converter does that and shows the table.
Nibble to hex digit
| Binary | Hex | Binary | Hex |
|---|---|---|---|
| 0000 | 0 | 1000 | 8 |
| 0001 | 1 | 1001 | 9 |
| 0010 | 2 | 1010 | A |
| 0011 | 3 | 1011 | B |
| 0100 | 4 | 1100 | C |
| 0101 | 5 | 1101 | D |
| 0110 | 6 | 1110 | E |
| 0111 | 7 | 1111 | F |
How to use it
- Type the binary number. Spaces between groups are fine and are ignored.
- For fractions, add a binary point; groups after the point are padded on the right.
- Read the grouping table: each row is a 4-bit group, its value 0-15, and the hex digit.
- Check the decimal value to confirm the grouping was right.
How to read the answer
The hex result is shown in uppercase without leading zeros. The number of hex digits is the number of bits divided by 4, rounded up. Because grouping does not change the value, the decimal shown for the binary input and the hex output are identical.
Common mistakes and edge cases
- Grouping from the left. Always start at the binary point (or the right end) and move left; pad the leftmost group.
- Padding fractional groups on the left instead of the right: .101 becomes .1010 = .A.
- Reading 1011 as 11 instead of B; every nibble is one hex character.
- Any digit other than 0 or 1 is rejected with the character named.
Worked examples
Six bits
101101
Converted value
2D
Full byte
11111111
Converted value
FF
Fraction
1010.101
Converted value
A.A
Negative
−11111
Converted value
-1F
Zero
0
Converted value
0
32-bit value
11011110101011011011111011101111
Converted value
DEADBEEF
Invalid digit
10102
Converted value
—
Frequently asked questions
How do you convert binary to hex?+
Group the bits in fours from the right, pad the first group with zeros, and replace each group with its hex digit. 101101 → 0010 1101 → 2D.
Why group in fours and not threes?+
Four bits hold 16 values, matching the 16 hex digits. Groups of three are for octal (8 values).
What if the number of bits is not a multiple of 4?+
Add zeros on the left until it is. Leading zeros do not change the value: 101101 is the same as 00101101.
How do binary fractions convert to hex?+
Group the bits after the point in fours from the point outward and pad on the right. .101 → .1010 → .A.
Is 1010 in binary A in hex?+
Yes. 1010 = 10 in decimal, and 10 is written A in hexadecimal.
About this calculator
- Written by
- mathcheck editorial team
- Last reviewed
- September 4, 2026
Method
- Uses the values entered by the user and stable formulas documented on the page.
Related calculators
Hex to Binary Converter
Convert hex to binary one nibble at a time: each hex digit becomes exactly four bits. Shows the nibble table, the decimal value, and octal, with fractional hex supported.
Binary to Decimal Converter
Convert binary to decimal with the positional-weight table (bit × 2^n), fractional bits after the binary point, and an option to read the bits as a signed two's complement number.
Decimal to Hex Converter
Convert decimal to hexadecimal with the repeated-division-by-16 steps, remainders mapped to A-F, fractional parts, nibble grouping, and negatives in two's complement.
Octal Converter
Convert octal to binary, decimal, or hex and back, with the 3-bit grouping table (one octal digit = three bits), repeated division by 8, and fractional octal support.
Bitwise Calculator
AND, OR, XOR, NOT, NAND, and NOR on binary, decimal, octal, or hex inputs at 4 to 64 bits, with an aligned bit grid, a bit-by-bit truth table, and the result in every base.
Hex to Decimal Converter
Convert hexadecimal to decimal with the place-value table (digit × 16^n), the digit-to-value key for A-F, nibble grouping into binary, and signed two's complement reading.
Last updated: September 4, 2026