Text to Binary & Binary to Text Converter
Convert text to 8-bit binary code (ASCII) or decode binary into text instantly.
🔒 Private by design. This tool runs entirely in your browser — the values you enter never leave your device.
Convert text to binary code (8-bit ASCII) or translate binary numbers back into human-readable text. Fast, free, and runs entirely in your browser with zero data sent to any server.
Formula / method
Examples
01001000 01101001
01001000 01100101 01101100 01101100 01101111
Hi
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
How does text to binary conversion work?
Every character on your keyboard corresponds to an ASCII code number (e.g. capital letter A is 65). That number is converted into an 8-bit binary representation of 0s and 1s (65 becomes 01000001).
What is "Hello" in binary code?
"Hello" in 8-bit binary is: 01001000 01100101 01101100 01101100 01101111.
How do I decode binary back to text?
Select the "Decode (binary → text)" direction in the dropdown and paste groups of 8-bit numbers separated by spaces. The tool instantly reads each byte and shows the plain English text.
Why are binary numbers grouped in 8 bits?
An 8-bit group forms one byte, which is the foundational unit computers use to store a single ASCII character, symbol, or number.