How to convert binary to hex

How to convert from binary number to hexadecimal number.

How to convert base 2 to base 16.

How to convert from hex to binary

Convert each 4 binary digits to hex digit  according to this table:

BinaryHex
00000
00011
00102
00113
01004
01015
01106
01117
10008
10019
1010A
1011B
1100C
1101D
1110E
1111F

Example #1

Convert (10101110)2 to hex:

(1010)2 = (A)16

(1110)2 = (E)16

So

(10101110)2 = (AE)16

Example #2

Convert (0111101000000001)2 to hex:

(0111)2 = (7)16

(1010)2 = (A)16

(0000)2 = (0)16

(0001)2 = (1)16

So

(0111101000000001)2 = (7A01)16

Example #3

Convert (0111101000000101)2 to hex:

(0111)2 = (7)16

(1010)2 = (A)16

(0000)2 = (0)16

(0101)2 = (5)16

So

(0111101000000101)2 = (7A05)16

 

 

How to convert hex to binary ►

 


See also

Advertising

NUMBER CONVERSION
°• CmtoInchesConvert.com •°