Text to ASCII binary
Convert text to its ASCII binary representation and vice-versa.
About Text to ASCII binary
Writes text as binary, eight bits per character, and turns such binary back into text. Each character becomes its ASCII code in base 2, padded to 8 digits and separated by spaces.
When you would use it
- Teaching or learning how characters are stored as bits.
- Decoding binary-looking strings in puzzles, CTF challenges or geocaching clues.
- Producing a binary representation for a design, a T-shirt or a demo.
How to use it
- Type text in the first field to get its binary form.
- Paste groups of eight 0s and 1s in the second field to get the text back; spaces and other separators are ignored.
- Copy the result.
Things worth knowing
- Each character is encoded as its UTF-16 code unit in 8 bits, which is exact for ASCII (0 to 127) and Latin-1 (up to 255). Characters above 255, including Chinese text and most emoji, do not fit in 8 bits and are encoded incorrectly, so stick to ASCII.
- Decoding removes everything that is not 0 or 1 and then requires a multiple of 8 digits; otherwise it reports an invalid binary string.
- A capital letter and its lowercase form differ by exactly one bit (the 32 bit): A is 01000001, a is 01100001.
- This is a representation, not a compression or encryption. It makes text 8 times longer.
Frequently asked questions
- Why does my decoded text look wrong?
- Either the input was not grouped in 8-bit bytes (7-bit groups are common in puzzles, so add a leading 0 to each group), or the original text contained non-ASCII characters that do not survive the 8-bit encoding.
- Is this how computers really store text?
- For ASCII, yes, one byte per character. Modern systems use UTF-8, where characters beyond ASCII take 2 to 4 bytes; this tool only shows the simple one-byte case.