Binary to hex converter

Enter binary to get hexadecimal. Group the bits in fours from the right — each group of four (a nibble) maps to exactly one hex digit, so 1011 0110 becomes B6.

To

Binary to hex table

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

Worked examples

  • 1000 → 8
  • 1011 → B
  • 1101 → D
  • 0111 → 7
  • 1001 → 9
  • 1010 1010 → AA
  • 1 1111 0100 → pad to 0001 1111 0100 → 1F4 (500 in decimal)

Why programmers use hex

Hex is a shorthand for binary: two hex digits are exactly one byte. Colours (#FF8800), memory addresses, MAC addresses and file signatures are all written in hex because it is four times shorter than binary and converts without any arithmetic.

Frequently asked questions

How do you convert binary to hexadecimal?

Split the binary into groups of 4 bits from the right, pad the leftmost group with zeros, then replace each group with its hex digit (0000 = 0 … 1111 = F).

What is 10101010 in hex?

AA. 1010 is A, so 1010 1010 is AA (170 in decimal).

Why are there letters in hex?

Base 16 needs sixteen single digits. After 0–9, the letters A–F stand for 10–15.

Keep going

Last reviewed 28 November 2026. Conversions run entirely in your browser.