Technology computers-hardware

How to Convert Binary to Byte

    • 1). Load the computer code onto your desktop. You will work through the code breaking it into bytes and then translate the bytes into something that human programmers can understand.

    • 2). Break the series of binary code into 8-bit segments. A byte is 8 bits of information.

    • 3). Translate the series of bytes into decimal or hexadecimal representation that is easier to read as a programmer. Hexadecimal is a numbering system which has 16 digits instead of decimal's 10. You can represent each byte in decimal or hexadecimal terms, but be consistent with which numbering system you use once you pick one. If you choose hexadecimal, each 4 bits of information is a hexadecimal character between 0 and F. The numeric value of each bit increases as you move from the least significant bit on the right hand side of the byte to the most significant bit on the left side of the byte. The progression of values from left to right is 128, 64, 32, 16, 8, 4, 2 and 1. Each bit that is a one adds to the value of the decimal representation. Each byte represents a decimal value between 0 and 255 or a hexadecimal value between 00 and FF.

    • 4). Draw a grid on your paper that is 8 columns wide by two rows. The top row represents the decimal equivalent of byte in the lower row. Sum the decimal equivalent of each bit of information to find the decimal equivalent. For example, convert the 01010010 to decimal. Add the decimal value of each bit, 64 + 16 + 2 = 82.



Leave a reply