answersLogoWhite

0

Why do you convert hex to binary?

Updated: 8/17/2019
User Avatar

Wiki User

9y ago

Best Answer

Hex is a convenient method for humans to notate binary numbers. Binary is a base-2 numbering system, but any base that is itself a power of 2 can be used to notate binary numbers using fewer digits. For instance, base-4 has only 4 digits: 0, 1, 2 and 3. Each of these digits can be mapped to any pair of binary digits (bits):

0 = 00

1 = 01

2 = 10

3 = 11

Thus the 24-bit binary sequence 100001000011111101110010 can be rewritten as 201003331302 in base-4 notation (replacing each pair of bits with its equivalent base-4 digit). In other words, instead of 24 binary digits we only need to write 12 base-4 digits. To convert back to binary, we simply replace each base-4 digit with its base-2 equivalent.

Base-8, or octal notation, has 8 digits: 0, 1, 2, 3, 4, 5, 6 and 7. Each of these can be mapped to any group of 3 bits:

0 = 000

1 = 001

2 = 010

3 = 011

4 = 100

5 = 101

6 = 110

7 = 111

Thus the 24-bit binary sequence 100001000011111101110010 becomes 41037561 in octal notation (replacing each group of 3 bits with its equivalent octal digit), which requires just one-third the number of digits. to convert back to binary, we simply replace each octal digit with its equivalent 3-bit grouping.

Hexadecimal (or hex) notation is base-16 and therefore uses 16 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F (0 to 15 decimal, respectively) and each hex digit can be mapped to a 4-bit grouping:

0 = 0000

1 = 0001

2 = 0010

3 = 0011

4 = 0100

5 = 0101

6 = 0110

7 = 0111

8 = 1000

9 = 1001

A = 1010

B = 1011

C = 1100

D = 1101

E = 1110

F = 1111

Thus the 24-bit binary sequence 100001000011111101110010 becomes 843F72 in hexadecimal notation, thus we use one-quarter the number of digits used in binary. Again, we can easily convert back to binary by replacing each hex digit with its equivalent 4-bit grouping.

A 24-bit value is typically represented as 3 separate bytes (8-bit groupings): 10000100 00111111 01110010. Splitting multi-byte values in this way is useful because each byte resides at a separate memory address and it is useful to know which specific value resides at which specific address, even when those values are combined to form a larger value. Hexadecimal typically follows suit, thus we get 84 3F 72.

Since 4-bits is half a byte, we often refer to hex digits as being nybbles.

Converting between hex and binary is an extremely trivial algorithm for humans to perform and anything that can be reduced to a trivial algorithm can therefore be easily programmed into a computer. Thus the computer can be programmed to convert our hexadecimal notation to its own native binary representation and vice versa. Converting from binary to decimal is not quite so straightforward, but the computer can still be programmed to convert from its native binary to any base we desire, whether it be decimal, octal, hexadecimal or even sexagecimal (base-60).

Believe it or not, we use sexagecimal every day without even realising it. The 24-hour clock is base-60 since we have 60 seconds to the minute and 60 minutes to the hour. 12 is also a factor of 60, as are 2, 3, 4, 5 and 6. It is this high range of divisibility that makes base-60 so useful, hence there are also 360 degrees of rotation.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why do you convert hex to binary?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How you convert 2011 binary form and hexadecimal form?

The answer depends on what form you wish to convert binary and hex 2011 to.


Convert the following binary number 0100110100011110 to a hexadecimal number?

hex =7


Example on how to convert binary to hex?

Group the binary into 4's. For example:0110110101100110 1101 01106 D 6


What is 1000100.11010010.01000011.10110011 to hexidecimal?

assuming that the full stops break up the binary numbers: Binary 1000100 = Hex 44 Binary 11010010 = Hex D2 Binary 1000011 = Hex 43 Binary 10110011 = Hex B3


How do you convert hexadecimal 4c.B7 to Binary?

Convert each hex digit to four binary digits. If you get less than three (for example, 7 --> 111), fill it out with zeroes to the left (in this case, 0111).


What does one use a hex converter for?

A hex converter is used to convert hexadecimal numbers to binary or decimal numbers, which is necessary for programming or studying computer science. Hex converters are usually online tools that will automatically convert the numbers for you quickly and easily.


1011.112 to hexadecimal how i convert binary to hexadecimal?

you can't convert 1011.112 to hex. the reason is simple bcz to convert into hex, first you have to convert in the binary value which must be vary between 0 and 1 only.here you used 2 i;e 1011.112, and remember we don't use any no. except 0 and 1.but you can change 1011 which is "B" in hexadecimal.so the answer is "B.112"


How do you convert hexadecimal numbers into binary numbers?

Binary to hexadecimal is very easy because hexadecimal numbers are designed specifically so that each hex digit is exactly 4 bits (i.e. 16 different values). So if you had this binary number: binary: 100011011011110101000100001 You could put in commas every four places (starting on the left): binary: 100,0110,1101,1110,1010,0010,0001 Then you could write the hex values immediately below: binary: 0100,0110,1101,1110,1010,0010,0001 hex: 4 6 D E A 2 1 and the hex value would be 46DEA21.


How do you count from binary to decimal?

An easy way to convert from binary to dec and to hex is to use the ASCII chart. It has listings for every command and symbol a computer will recognize.


What is the binary form for hex value E2?

E2 in hex is 1110 0010 in binary


Why is Hexadecimal used?

It is used because it is easier to convert to and from binary to hexadecimal than decimal, and it uses less characters than binary. For instance: decimal: 65535 hex: FFFF binary: 1111111111111111


Convert the hexadecimal number ABCDEF into binary and octal?

Start > All Programs > Accessories > Calculator In Calculator, View > Programmer. Select Hex. Type ABCDEF and then select binary. This gives this : 101010111100110111101111