curly{bits}

curlybits / Base Converter / Binary to Hex

Binary to Hex Converter

Type a binary number to convert it to hex as you type. The working is shown step by step underneath, so you can check your homework or learn the method. Binary, octal and other bases are shown too.

How it's converted

How to use the Binary to Hex Converter

  1. Type or paste the binary number into the first box.
  2. Read the hex result in the second box, and click Copy to copy it.
  3. Scroll to How it works for the step-by-step method.

How to convert binary to hex

Split the binary number into groups of four bits, starting from the right, and add leading zeros to the last group if needed. Then replace each group with its hex digit using the table below.

Example: 1101 0110 → D and 6 → D6. That's why programmers like hex: one byte is always exactly two hex digits.

Reference table

DecimalBinaryHexOctal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000810
91001911
101010A12
111011B13
121100C14
131101D15
141110E16
151111F17

Frequently asked questions

Why groups of four?

Four bits have 16 possible values (0000 to 1111), exactly the number of hex digits, so each group maps to one digit.

What is 11111111 in hex?

FF.