How does binary code represent text?
Each character in ASCII text is assigned a number (A = 65, a = 97, space = 32). That number is converted to 8-bit binary. Example: 'A' = 65 = 01000001. A word like 'Hi' = 'H'(72=01001000) + 'i'(105=01101001) = '01001000 01101001'. The text-to-binary direction works by looking up each character's ASCII value and converting to 8-bit binary groups. Binary-to-text reverses this: split into 8-bit groups, convert each to decimal, look up the ASCII character.