How does a computer convert text into binary or 0's and 1's?
Computers convert text and other data into binary by using an assigned ASCII value. Once the ASCII value is known that value can be converted into binary. In the example below we take the text "hope" and show how it is converted into binary that the computer understands.
Let's take the first character "h" and break down the process. Once the letter "h" (in lowercase) is typed on the keyboard, a signal to the computer as input. The computer knows the ASCII standard value for "h" is "104", which can be converted by the computer into the binary value "01101000." After the "h" is converted to binary, the computer can transmit that data using electrical signals or store the information on magnetic media by changing the poles to negative or positive.
How does the computer convert binary back into text?
When the computer needs to convert the binary data back into text or other information the human can understand, it's the reverse of the previously shown process. For example, a computer may convert the binary "01101000" into the decimal value "104" which it knows is the letter "h" using the ASCII standard conversion. Hence, you see the letter 'h' output to your computer's monitor.
- Use our convert tool to convert any text into ASCII, binary, and other values.
- See our ASCII page for a full breakdown of the ASCII standard.
- How can I learn more about computers?
- See our binary, character, text, and word terms for further information on each of these terms.
- Computer hardware help and support.