Online Binary to Hex converter

Online Web Code Test | Online Image Picker | Online Color Picker

Binary to Hex converter

2
Hex result:
16
Decimal result:
10

Hex to Binary converter ►

Binary to Hex

Binary is the simplest kind of number system that uses only two digits of 0 and 1 (i.e. value of base 2). Since digital electronics have only these two states (either 0 or 1), so binary number is most preferred in modern computer engineer, networking and communication specialists, and other professionals.

Whereas Hexadecimal number is one of the number systems which has value is 16 and it has only 16 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. Where A, B, C, D, E and F are single bit representations of decimal value 10, 11, 12, 13, 14 and 15 respectively.

How to convert binary to hex

Conversion from Binary to Hexadecimal number system

Hexadecimal number system provides convenient way of converting large binary numbers into more compact and smaller groups. There are various ways to convert a binary number into hexadecimal number. You can convert using direct methods or indirect methods. First, you need to convert a binary into other base system (e.g., into decimal, or into octal). Then you need to convert it hexadecimal number.

Since number numbers are type of positional number system. That means weight of the positions from right to left are as 160, 161, 162, 163and so on. for the integer part and weight of the positions from left to right are as 16-1, 16-2, 16-3and so on. for the fractional part.

Example

Convert binary number 1101010 into hexadecimal number.

.First convert this into decimal number:

= (1101010)2

= 1x26+1x25+0x24+1x23+0x22+1x21+0x20

= 64+32+0+8+0+2+0

= (106)10

Then, convert it into hexadecimal number

= (106)10

= 6x161+10x160

= (6A)16 which is answer.

conversion from Binary to hexadecimal using grouping

Convert every 4 binary digits (start from bit 0) to 1 hex digit, with this table:

Binary Hex
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
1010 A
1011 B
1100 C
1101 D
1110 E
1111 F

Example:

Convert binary 11011002 to hex:

11011002 = 110 1100 = 6 C = 6C16


Hex to Binary converter ►

 



Online Number Calculators

Online Web Code Test | Online Image Picker | Online Color Picker