Q&A for How to Convert Binary to Hexadecimal

Return to Full Article

Search
Add New Question
  • Question
    How do I convert 100101 binary to hexadecimal?
    Community Answer
    First add two leading zeros so that you have enough digits to split into equal 4 bit sections: (00)100101. Now split into two equal 4 bit sections (0010)(0101). Convert each four bit section into their respective hex values: 0010 = 2; 0101 = 5; (0010)(0101) = (2)(5) = 25(hex). This should not be confused with the decimal (base 10) value 25.
  • Question
    Why are four binary digits necessary to convert binary to hexadecimal?
    Community Answer
    Hexadecimal is base-16 whereas binary is only in the form base-2. To account for this, you need four binary digits to allow for the 16 possible characters of hexadecimal. (Think 2^4=16 like how you would calculate the number of alternatives in physics.)
  • Question
    How can I change the hexadecimal binary?
    Community Answer
    To convert Binary to hexadecimal you need to know that the four numbers each have values. 8 4 2 1 0 1 0 1 These numbers only equal the values if there is a 1 under them for example this number would be 5 because there is only a 1 under 4 and 1. You would then change your answer in this example 5 into hexadecimal which is 5. For 8 number binary like 00101011 you want to split them up into 2 different parts. 0010 and 1011. To do this you do the exact same as you did for the previous one but you put the 2 answer together for example 2 and 13 would be 2D.
  • Question
    Can any binary number be first converted into a decimal, and then the derived decimal number be converted into hexadecimal?
    Community Answer
    Yes, although that's a much more complex process.
  • Question
    How can I find the hexadecimal representation of the binary number (110101111) given in base 2?
    Community Answer
    First split the binary number into groups of 4, if the number of bits is not divisible exactly by 4, pad with zeroes on the left to get: 0001, 1010, and 1111. Then for each group of 4 bits, convert to hexadecimal, 0001(base 2) = 1(base 10) = 1(Base 16). 1010(base 2) = 10(base 10) = A(base 16). 1111(base 2) = 15(base 10) = F(base 16). 110101111(base 2) = 1AF(base 16).
  • Question
    How can I convert a binary like 000110011.0011 into decimal and hexadecimal?
    Lance Patrick Abarquez
    Community Answer
    Finding the decimal. In this case, it is (0+0+32+16)+(0+0+2+1)+(0+0+1/8+1/16) (decimal part is the "halves" position) = 51.1875. Finding the hexadecimal will go as 0011=3 so in hexadecimal it's 33.3 (the first 0 is unnecessary and therefore disregarded).
  • Question
    How do I convert binary to octal?
    Community Answer
    There are lot ways to do this. See How to Convert Binary to Octal Number
  • Question
    How do I convert decimal to octal?
    Community Answer
    First convert decimal to binary, then into octal. For example, with 229(dec) = 1110 0101, make groups of 3 bits starting from the right side and add zeroes if needed on the left side to complete a group of 3 binary numbers, in this case: 011 100 101. Convert each group of 3 bits into decimal by adding the powers of 2, 011=0+2+1=3; 100=4+0+0; 101=4+0+1=5. The answer is 345(octal).
  • Question
    How do I convert hexadecimal to binary?
    Community Answer
    Each hexadecimal number can be represented by 4 bits, use the table above in reverse to convert each hexadecimal number into the corresponding 4 bits. If there are less than 4 bits, pad it on the left with 0 until there are 4 bits. E.g. A02F hexadecimal = 1010 (000)0 (00)10 1111 = 1010000000101111 in binary.
  • Question
    Can we write A A as A square or F F as F square(power 2 on F) in hexadecimal?
    Community Answer
    No, because letters in hexadecimal aren't considred variables. AA shouldn't be interpreted as 10*10 [=100] but decomposed as (10*16^1)+(10*16^0) [=170]. You may only write A² if it is explicitly written A*A. Even then, it is discouraged as you could confuse it for a variable. Just write the answer instead [A*A=64].
  • Question
    Why can I only use 1 and 0?
    Custard 008
    Community Answer
    Binary is represented using 1's and 0's since a computer can either be on (represented by a 1) or off (represented by a 0).
  • Question
    How can I convert 1001010.101011 from binary to hexadecimal?
    Community Answer
    Make it in groups of 4. Then check the table. Remember: 10->A 11-B 12-C 13-D 14-E 15-F.
  • Question
    How do I convert 1128 to hexadecimal?
    Community Answer
    It can be converted by dividing 1128 by the base, 16, because the given number is in decimal form. After the division process, (70*16 = 1120) so the remainder left will be 8. Divide 70 by 16 to get 4 with remainder 6. Divide 4 by 16 to get 0 remainder 4. Collect all the remainders in the order of the last one to the first one = 4,6,8. The answer is 468(hex)
Ask a Question

      Return to Full Article