How to Convert Text to Binary (ASCII)
Each character has an ASCII code. In binary form, that code is stored as an 8-bit (1 byte) number. To convert text into binary:
- Take each character in the text.
- Find its ASCII decimal value.
- Convert that decimal number into an 8-bit binary string.
Example: Convert "Hi"
- H → 72 → 01001000
- i → 105 → 01101001
Text "Hi" = Binary 01001000 01101001
Why It Matters
All text in computers is stored in binary. Converting text to binary helps in learning how characters are represented inside digital systems and data transmission.