fast&private

Convert Binary to Hexadecimal

Convert a binary sequence to hexadecimal.

Your data is never sent to any server.

The binary to hexadecimal converter turns a sequence of ones and zeros into base 16. The mapping is direct: every group of four bits becomes a single hexadecimal digit.

Grouping in fours

Since 16 = 2⁴, the conversion needs no division. Group the bits from the right and substitute each group:

Bits10101101
Value1013
HexAD

So 10101101 is AD. If the sequence is not a multiple of four, pad with zeros on the left without changing the value.

The table of sixteen groups

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

With these sixteen rows memorised the conversion is done at a glance and without a calculator, however long the sequence.

Need the other direction? Go to hex to binary.

How to use Binary to Hex

  1. 1

    Type the binary sequence

    Enter the ones and zeros. You can split them into groups of four with spaces to read them more easily: spaces are ignored.

  2. 2

    Read the hexadecimal value

    The base 16 result appears highlighted instantly, one hexadecimal digit for every four bits.

  3. 3

    Copy the result

    Press the copy button on the hexadecimal row to send it to your clipboard.

  4. 4

    Check decimal and octal

    Below you get the same number in the other two bases, in case you need to verify the actual value.

Frequently asked questions

Why do binary and hexadecimal fit together so neatly?

Because 16 is 2 to the power of 4, so each hexadecimal digit maps to exactly four bits. The conversion is a direct group-by-group translation with no intermediate arithmetic.

How do you convert it by hand?

Group the bits in fours starting from the right, padding with zeros on the left if needed, then replace each group with its hexadecimal digit.

What if my bit count is not a multiple of four?

Pad with zeros on the left; they do not change the value. So 1 0110 is treated as 0001 0110, which is 16 in hexadecimal.

What is 1111 1111 in hexadecimal?

FF. It is two groups of four ones, and each group of four ones is worth F, the highest digit in base 16.

Why use hexadecimal instead of binary?

Because it takes four times less room and reads without counting positions. A byte goes from eight characters to two, and a transcription error is spotted far sooner.