Text to Binary Converter
Convert text to binary.
Input
Result
What is a Text to Binary Converter?
A Text to Binary Converter transforms each character of a text string into its 8-bit binary representation. Since computers process data in binary (base-2), this tool helps you understand how characters like letters, digits, and symbols are stored internally. Each character maps to a unique ASCII or Unicode code point, which is then expressed as a sequence of 0s and 1s.
How to calculate text to binary manually (the formula)
For each character in the text, find its ASCII decimal value from a reference table. Then convert that decimal value to binary by repeatedly dividing by 2 and collecting the remainders from bottom to top. For example, the letter A has ASCII value 65. 65 ÷ 2 = 32 remainder 1, 32 ÷ 2 = 16 remainder 0, 16 ÷ 2 = 8 remainder 0, 8 ÷ 2 = 4 remainder 0, 4 ÷ 2 = 2 remainder 0, 2 ÷ 2 = 1 remainder 0, 1 ÷ 2 = 0 remainder 1. Reading remainders bottom-to-top: 1000001, padded to 8 bits = 01000001.
Example calculation
Convert "Hi" to binary. H = 72 decimal = 01001000 binary. i = 105 decimal = 01101001 binary. Result: 01001000 01101001. For "A" (65 decimal): 01000001. For "!" (33 decimal): 00100001. The binary output is typically grouped in 8-bit chunks (one byte per character) separated by spaces.
Common mistakes
- Dropping leading zeros — Every ASCII character requires exactly 8 bits. Dropping leading zeros changes the value and breaks proper decoding.
- Confusing text encoding — ASCII uses 7 bits but is typically stored in 8-bit bytes. UTF-8 characters may use 2-4 bytes; each byte should be converted separately.
- Mixing binary with other bases — Binary output should only contain 0 and 1. Including decimal or hex values mixed in creates invalid binary strings.
Frequently asked questions
What is text to binary conversion?
It converts each character in text to its 8-bit binary representation using ASCII or Unicode values.
How do I convert text to binary manually?
Look up each character's ASCII decimal value, then convert that number to binary.
How do I convert binary back to text?
Group bits into 8, convert each group to decimal, then map via the ASCII table.
What is the ASCII value of A?
A is 65 in decimal, which is 01000001 in binary.
Why is binary used for text?
Computers store all data in binary, and text encoding assigns a unique binary pattern to each character.
What is the difference between ASCII and binary?
ASCII is a character encoding standard; binary is the numeral system (base 2) used to represent those codes.