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 following example, we take the word 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 store and process the data as ones and zeros.
How does the computer convert binary back into text?
When the computer needs to convert the binary data back into human-readable text, 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 more.
- 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.