Hex to Binary Converter

Use this online converter to easily convert hex numbers to binary numbers.

   
Share converter:

Embed this tool:
get code     

    Quick navigation:
  1. Conversion of hex numbers to binary numbers
  2. How to convert hex to binary
  3. Hexadecimal to binary conversion table

    Conversion of hex numbers to binary numbers

Both hexadecimal (hex, base 16) numbers and binary (bits, base 2) numbers see heavy usage in computer architecture, software engineering and related computer science disciplines. Since computers are electrical machines, they represent data in binary "bits" wherein 0 is recorded with a lack of electrical voltage and 1 is represented by its presence, making the binary system with its two numbers: ones and zeroes, the natural mathematical choice.

The hex system of number representation is convenient since binary numbers translate nicely to hex numbers translate nicely to binary ones, while the latter a much easier to read and remember. This was especially important in the early days of computing when a lot of programming was performed manually, e.g. via assembler instructions. Its importance has since been limited mostly to software engineers working with languages of low levels of abstractions, although hex appears in high-level markup languages and protocols as well, e.g. entity references in html and URL characters in the HTTP protocol.

Conversion from hex to binary numbers can be given as an exam task or home assignment in order to test the understanding of these two systems in students of various computer science courses.

    How to convert hex to binary

First, write down the hex number by replacing each digit by its binary equivalent from the reference table below. Add insignificant leading zeroes if the binary number has less than 4 digits, e.g. write 112 (3 decimal) as 00112. Finally, concatenate the groups of 4 binary digits together.

Example 1: Convert the hex number e7 to binary.

Solution: e16 = 11102, 716 = 01112. Concatenating 1110 and 0111 we get the answer: 11100111.

    Hexadecimal to binary conversion table

If you decide to manually perform the conversion this table can be a useful reference:

hex to decimal conversion table
Hex Decimal
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
a 1010
b 1011
c 1100
d 1101
e 1110
f 1111
aa 10101010
bb 10111011
cc 11001100
dd 11011101
ee 11101110
ff 11111111
10 10000
100 100000000
1000 1000000000000
10000 10000000000000000

Note how aa is exactly 1010 (a) concatenated with itself, bb is 1011 (b) concatenated with itself. This and other properties make conversion between hex and binary very convenient, even by hand.

Cite this converter & page

If you'd like to cite this online converter resource and information as provided on the page, you can use the following citation:
Georgiev G.Z., "Hex to Binary Converter", [online] Available at: https://www.gigacalculator.com/converters/convert-hex-to-binary.php URL [Accessed Date: 06 Jun, 2023].