Text to Binary
Convert text to binary code and back. Encode text to 8-bit binary and decode binary to text, all in the browser.
Output is 8-bit UTF-8, one byte per character, space-separated.
About Text to Binary
Convert text to its binary representation (8-bit per character) and back again. Useful for learning, CTF challenges, and debugging how text is stored. Everything runs locally.
How to use it
- 1Choose text-to-binary or binary-to-text.
- 2Enter your text or binary (space or comma separated).
- 3Copy the result.
When to use it
- Learning how text is stored as bits, or teaching a basic encoding concept.
- Working on a CTF challenge or a puzzle that encodes messages in binary.
- Double-checking how a short word maps to its 8-bit pattern before writing lower-level code.
Tips & best practices
- Treat the output as educational - real binary in code is usually left as raw bytes, not space-separated 0s and 1s.
- Multi-byte characters take more than 8 bits, so always confirm the expected width for your character set.
- A single stray non-binary character breaks a decode, so paste carefully and check the error.
Examples
Hello
Input
HiResult
01001000 01101001Decode
Input
01101000 01101001Result
hiFrequently asked questions
Is it 8-bit per character?
Yes - each UTF-8 byte is shown as 8 bits. Multi-byte characters (accented letters, emoji) produce more than 8 bits per character.
What format does binary input need?
Spaces or commas between each 8-bit group. Values must be 0 or 1 and between 0 and 255.
Is the encoding 8-bit ASCII or UTF-8?
It uses 8-bit UTF-8, so accented letters and emoji use more than one byte and show more than 8 bits each.