Binary to Hexadecimal Converter

To use this binary to hex conversion tool, you must type a binary value like 11011011 into the left field below and hit the Convert button. The converter will give you the hexadecimal (base-16) equivalent of the given value.

swap conversion: Hex To Binary Converter

Binary to hex conversion result in base numbers

0

Binary System

The binary numeral system uses the number 2 as its base (radix). As a base-2 numeral system, it consists of only two numbers: 0 and 1. 

While it has been applied in ancient Egypt, China and India for different purposes, the binary system has become the language of electronics and computers in the modern world. This is the most efficient system to detect an electric signal’s off (0) and on (1) state. It is also the basis for binary code that is used to compose data in computer-based machines. Even the digital text that you are reading right now consists of binary numbers.

Reading a binary number is easier than it looks: This is a positional system; therefore, every digit in a binary number is raised to the powers of 2, starting from the rightmost with 20. In the binary system, each binary digit refers to 1 bit.

Hexadecimal System (Hex System)

The hexadecimal system (shortly hex), uses the number 16 as its base (radix). As a base-16 numeral system, it uses 16 symbols. These are the 10 decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the first six letters of the English alphabet (A, B, C, D, E, F). The letters are used because of the need to represent the values 10, 11, 12, 13, 14 and 15 each in one single symbol.

Hex is used in mathematics and information technologies as a more friendly way to represent binary numbers. Each hex digit represents four binary digits; therefore, hex is a language to write binary in an abbreviated form.

Four binary digits (also called nibbles) make up half a byte. This means one byte can carry binary values from 0000 0000 to 1111 1111. In hex, these can be represented in a friendlier fashion, ranging from 00 to FF.

In html programming, colors can be represented by a 6-digit hexadecimal number: FFFFFF represents white whereas 000000 represents black.

How to Convert Binary to Hex

Converting from binary to hex is easy since hexadecimal numbers are simplified versions of binary strings. You just need to remember that each hex digit represents four binary digits. It follows that four binary digits will be equal to one hex digit. The method is easier than it sounds but it’s always useful to use a binary to hex conversion chart to save time.

Step 1: Write down the binary number and group the digits (0’s and 1’s) in sets of four. Start doing this from the right. If the leftmost group doesn’t have enough digits to make up a set of four, add extra 0’s to make a group.

Step 2: Write 8, 4, 2 and 1 below each group. These are the weights of the positions or place holders in the number (23, 22, 21 and 20).

Step 3: Every group of four in binary will give you one digit in hexadecimal. Multiply the 8, 4, 2 and 1’s by the digit above. 

Step 4: Add the products within each set of four. Write the sums below the groups they belong to.

Step 5: The digits you get from the sums in each group will give you the hexadecimal number, from left to right.


Now, let’s apply these steps to, for example, the binary number (10101010)2 

Step 1: 10101010 has eight digits and therefore can be grouped in sets of four without adding 0’s.
Think of the number as (1010)(1010)

Step 2: Write 8, 4, 2 and 1 below each group.

1010 1010

8421 8421

Step 3: Multiply the 8, 4, 2 and 1’s with the digit above.

1010 1010

8421 8421

8020 8020

Step 4: Add the products within each set of four.

In the first group, 8 + 2 = 10

In the second group, 8 + 2 = 10

Write these digits below the groups they belong to.

1010 1010

8421 8421

8020 8020

10 10

Step 5: Notice that, in order to represent values above 9, letters will be used. 10 is represented as the letter A in the hexadecimal system. Therefore, (10101010)2 = (AA)16


Binary to Hex Conversion Examples

Example 1: (10001110)2 = (8E)16

1000 1110

8421 8421

8000 8420

8 15

8 E


Example 2: (111011.111)2 = (3B.E)16

(Notice that this binary number has a decimal point and cannot be automatically grouped in sets of four. You need to add 0’s both the leftmost and the rightmost parts.)

0011 1011. 1110

8421 8421 8421

0021 8021 8420

3 11. 14

3 B. E

Binary to Hexadecimal Conversion Chart

The following binary to hexadecimal conversion chart shows which four binary digits are equivalent to which hex symbol:

BinaryHexadecimal
000000011
000000102
000000113
000001004
000001015
000001106
000001117
000010008
000010019
00001010A
00001011B
00001100C
00001101D
00001110E
00001111F
0001000010
0001000111
0001001012
0001001113
0001010014
0001010115
0001011016
0001011117
0001100018
0001100119
000110101A
000110111B
000111001C
000111011D
000111101E
000111111F
0010000020
0010000121
0010001022
0010001123
0010010024
0010010125
0010011026
0010011127
0010100028
0010100129
001010102A
001010112B
001011002C
001011012D
001011102E
001011112F
0011000030
0011000131
0011001032
0011001133
0011010034
0011010135
0011011036
0011011137
0011100038
0011100139
001110103A
001110113B
001111003C
001111013D
001111103E
001111113F
0100000040
BinaryHexadecimal
0100000141
0100001042
0100001143
0100010044
0100010145
0100011046
0100011147
0100100048
0100100149
010010104A
010010114B
010011004C
010011014D
010011104E
010011114F
0101000050
0101000151
0101001052
0101001153
0101010054
0101010155
0101011056
0101011157
0101100058
0101100159
010110105A
010110115B
010111005C
010111015D
010111105E
010111115F
0110000060
0110000161
0110001062
0110001163
0110010064
0110010165
0110011066
0110011167
0110100068
0110100169
011010106A
011010116B
011011006C
011011016D
011011106E
011011116F
0111000070
0111000171
0111001072
0111001173
0111010074
0111010175
0111011076
0111011177
0111100078
0111100179
011110107A
011110117B
011111007C
011111017D
011111107E
011111117F
1000000080
BinaryHexadecimal
1000000181
1000001082
1000001183
1000010084
1000010185
1000011086
1000011187
1000100088
1000100189
100010108A
100010118B
100011008C
100011018D
100011108E
100011118F
1001000090
1001000191
1001001092
1001001193
1001010094
1001010195
1001011096
1001011197
1001100098
1001100199
100110109A
100110119B
100111009C
100111019D
100111109E
100111119F
10100000A0
10100001A1
10100010A2
10100011A3
10100100A4
10100101A5
10100110A6
10100111A7
10101000A8
10101001A9
10101010AA
10101011AB
10101100AC
10101101AD
10101110AE
10101111AF
10110000B0
10110001B1
10110010B2
10110011B3
10110100B4
10110101B5
10110110B6
10110111B7
10111000B8
10111001B9
10111010BA
10111011BB
10111100BC
10111101BD
10111110BE
10111111BF
11000000C0
BinaryHexadecimal
11000001C1
11000010C2
11000011C3
11000100C4
11000101C5
11000110C6
11000111C7
11001000C8
11001001C9
11001010CA
11001011CB
11001100CC
11001101CD
11001110CE
11001111CF
11010000D0
11010001D1
11010010D2
11010011D3
11010100D4
11010101D5
11010110D6
11010111D7
11011000D8
11011001D9
11011010DA
11011011DB
11011100DC
11011101DD
11011110DE
11011111DF
11100000E0
11100001E1
11100010E2
11100011E3
11100100E4
11100101E5
11100110E6
11100111E7
11101000E8
11101001E9
11101010EA
11101011EB
11101100EC
11101101ED
11101110EE
11101111EF
11110000F0
11110001F1
11110010F2
11110011F3
11110100F4
11110101F5
11110110F6
11110111F7
11111000F8
11111001F9
11111010FA
11111011FB
11111100FC
11111101FD
11111110FE
11111111FF

Recent Comments
Esukuile Awajiokanuche 2021-04-02 12:53:31

It has now given me a better understanding on Binary to Hexadecimal conversion.
Thanks so much. I really appreciate.

Rajesh 2021-01-28 15:25:32

i found it correct answer on this

AH 2021-01-27 22:16:47

Example 1 is correct. The arithmetic related to 8420 indeed equals 14, but the way you are counting may be fooling you. Recall that counting starts at zero, so the tenth digit is actually the number 9. When you reach ten in hex, you start using letters. Thus 10=A, 11=B, 12=C, 13=D, 14=E, and 15=F.

FB 2020-12-04 04:41:47

As other said befores there is a error in example 1, 8420 is equal to 14 not 15

SK 2020-11-09 03:50:03

Wow...What a great!!

Guest 2020-09-17 00:40:34

Given a 5-byte value, how many hexadecimal digits would be required to represent the value in hexadecimal notation?

Guest 2020-09-08 06:48:03

Tony your decode 320287629574179863518586227882627903634377968

Nando 2020-07-10 17:32:56

Can you help me answer my exercise please, 1111 1111(binary) AND 1010 1010(binary) AND 0101 0101(binary)=

Harry Batt 2020-07-01 18:35:26

Great tool

tony 2020-06-30 10:17:57

can you decode this to text?

00001110 01011100 10111000 10111111 01111101 01011111 00111010 00111001 01111000 11011101 01000110 01001111 10001111 10111110 11010000 10001110 11100101 10001100 11110000

Guest 2020-06-22 16:51:12

Really a nice tool really

Thanos 2020-06-21 09:47:47

thanx for your help.

Flo 2020-05-25 15:02:12

There is a fault in example 1: 8420 is equal to 14, not 15

Priyansh dubey 2020-05-21 04:25:20

Thanks for your help it is amazing

Puzzled 2020-05-13 17:28:29

Amazingly useful!
Thanks!

Struggler 2020-04-26 05:57:50

So helpful! Thanks a F4240!

anonymous 2020-04-24 10:35:45

It saved my time

Ved 2020-04-20 03:42:11

Thank you so much,
This was very helpful

Guest 2020-04-01 10:32:39

Thank you so much, this information was helpful.

Share Your Comments