Skip to content
Devtoolry

Binary to Hex Converter

Convert binary to hexadecimal online by grouping the bits in fours, shown step by step. Works with long bit strings, binary fractions and whole lists at once.

Runs in your browser · Nothing uploaded · No sign-up

Something not working, or missing a feature? Send feedback

About the Binary to Hex Converter

The Binary to Hex Converter shortens long bit strings into hexadecimal by splitting them into groups of four bits from the right and replacing each group with one hex digit. The groups are shown, so you can follow the conversion by hand, and binary fractions are grouped from the point outwards.

Conversion happens in your browser, so your files and records stay private.

How to use the Binary to Hex Converter

  1. Paste a binary number; spaces and underscores between bits are ignored, so 1111_0000 works.
  2. Read the hex result and the 4-bit groups it came from.
  3. Turn on the 0x prefix or byte grouping if you need them, then copy.

Hex digits and their 4-bit patterns

One hex digit always stands for exactly four bits, which is why the conversion works digit by digit.

HexBinaryDecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Examples

One byte

Input

11010110

Result

D6
A length that is not a multiple of 4

Input

101101

Result

2D

Padded to 0010 1101.

A fraction

Input

1010.1

Result

A.8
Two bytes, grouped

Input

1111000010100101 (Group bytes)

Result

F0 A5

Common mistakes

  • Grouping from the left. Grouping 101101 from the left gives 1011 01, which is wrong. Always start at the right of the integer part.

Works well with the Binary to Hex Converter

Frequently asked questions

How do you convert binary to hex?

Split the bits into groups of four starting from the right, adding zeros on the left if needed. Replace each group with its hex digit from the table: 1101 0110 is D6.

Why groups of four?

16 = 2⁴, so each hex digit holds exactly four bits. That is also why no arithmetic is needed: binary to hex is a lookup per group.

What about bits after the point?

Group them in fours to the right of the point and pad with zeros on the right: 1010.1 becomes 1010.1000, which is A.8.