Binary Translator
Convert text to binary and back. The encoder uses TextEncoder so it handles full UTF-8 (emoji, accents, CJK characters); an optional ASCII-only mode uses charCodeAt for byte-perfect 7-bit output. The decoder accepts space-separated bytes or runs of 0s and 1s. Copy or download either direction, and swap with one click.
How to use
- 1
Pick a direction
Use the Text → Binary or Binary → Text tab. The Swap button moves your output into the other mode's input.
- 2
Type or paste your data
For text encoding, paste any text — full UTF-8 (emoji, accents, CJK) is supported. For decoding, paste space-separated bytes or a run of 0s and 1s.
- 3
Toggle ASCII-only (optional)
Switch ASCII only on to drop non-ASCII characters and emit pure 7-bit output. Useful for legacy systems.
- 4
Copy or download
Click Copy to put the result on your clipboard, or Save to download a .txt file.
Common use cases
- Learn how text is encoded as bits — perfect for CS students and interview prep.
- Debug binary protocols or inspect the raw bytes of an emoji.
- Encode ASCII-only payloads for legacy systems that don't speak UTF-8.
- Decode binary pasted from a textbook, tutorial or CTF challenge.
Limitations
- UTF-8 mode emits one byte per character for ASCII, two for Latin accents, three for most CJK characters, and four for emoji — so the byte count will be larger than the character count.
- The decoder is strict: invalid UTF-8 byte sequences are rejected with a friendly error. Turn on ASCII only if you're working with raw 7-bit data.
- Inputs larger than 1 MB are flagged but still processed on the main thread — very large inputs may take a moment.