Text to Binary
Convert text into 8-bit binary (ASCII) code.
See how computers store text. Enter any text to convert each character into its 8-bit binary (ASCII) code — great for learning, puzzles and homework.
Formula / method
Examples
01001000 01101001
01000001
How text becomes binary
Every character on your keyboard has a numeric code. This tool looks up each character's value and writes it as an 8-bit binary number, so the capital letter A (code 65) becomes 01000001. Characters are separated by spaces so each byte stays readable.
Padding every value to eight digits keeps the output aligned, since one byte is exactly eight bits and can represent 256 distinct characters.
ASCII, Unicode and reversing it
Standard English letters, digits and punctuation live in the ASCII range and fit neatly in a single byte. Accented letters and emoji use Unicode and may need more than eight bits, so binary output for them can be longer than one group per visible character.
Binary is a teaching aid for how computers store text, not a form of encryption, since anyone can decode it back. For sending readable data over text-only channels, the Base64 Decoder is more practical; for a spoken or tapped signal, try the Morse Code Translator.
Where it's used
- Teaching or learning how computers store text as ASCII and binary
- Solving binary puzzles in CTF challenges, escape rooms, and geocaching
- Creating hidden-message binary art, engravings, or jewelry
- Computer-science homework on character encoding and bytes
- Demonstrating how a single keypress maps to eight bits
Real-world examples
- 'Hi' converts to 01001000 01101001, the two ASCII bytes for H and i.
- The single letter 'A', character code 65, becomes 01000001.
- Encoding a word for a puzzle turns 'SOS' into three 8-bit groups.
A bit of history
Modern binary arithmetic was set out by Gottfried Wilhelm Leibniz in his 1703 paper Explication de l'Arithmetique Binaire, which showed how any number can be written using only the digits 0 and 1.
Did you know?
Leibniz saw a link between his binary system and the ancient Chinese I Ching, whose 64 hexagrams of broken and solid lines map directly onto six-bit binary numbers.
FAQ
What encoding does this use?
Each character is converted using its Unicode code point, padded to 8 bits. Standard English letters and symbols match their ASCII values.