Text to Binary
ConverterConvert text to binary or back via UTF-8 encoding for ASCII and Unicode characters. Handy for low-level debugging, encoding tutorials and CTF puzzles.
About Text to Binary
Learning character encoding, debugging serial data, or running a programming demo often means breaking text into a string of 0s and 1s. This tool converts text to and from binary bit strings locally in your browser, processing each character's bytes via UTF-8 so multibyte characters like Chinese work, with optional 8-bit grouping. All computation happens on your machine and your input is never sent to any server. Tip: Bookmark this tool for quick access whenever you need format conversion. All processing happens locally in your browser — no data upload, so feel free to paste sensitive content.
How to Use
- Open the Text to Binary tool page
- Enter or paste your data into the input area
- View the real-time results and use the copy button to get the output
Use Cases
- Teaching demo — Show how a sentence becomes a 0/1 sequence to explain how computers store text.
- Encoding check — Inspect a character's UTF-8 bytes to confirm the encoding is as expected.
- Restore data — Convert a captured bit string back to text to read content from a device.
- Protocol debug — Turn a test string into binary to compare the underlying bit sequence.
- Fun steganography — Encode a short message as a 0/1 string for puzzles or playful sharing.
- Bit-level debugging — Convert a byte sequence to binary to inspect individual bits when debugging a protocol buffer or serial packet.
- CS fundamentals — Demonstrate UTF-8 encoding by showing how each character's code point maps to its binary representation.
FAQ
How many bits is one Chinese character?
Under UTF-8 a common Han character is 3 bytes, i.e. 24 bits. The tool emits bits matching each character's actual UTF-8 byte count, not a fixed one byte per character.
Do bit groups need spaces?
For readability it groups every 8 bits (one byte) with a space by default. On decoding it ignores spaces, so input works with or without them.
Must groups be 8 bits?
It works in bytes (8 bits). If the bit count is not a multiple of 8, decoding fails to align bytes and errors — check the bit string is complete.
Are emoji supported?
Yes. An emoji is usually 4 bytes in UTF-8, expanded to 32 bits and decoded back correctly.
How does this differ from text to Unicode?
This outputs byte-based 0/1 bits; to see each character's code point (like U+4F60), use our text to Unicode tool.
Any browser compatibility requirements?
This tool works in all modern browsers (Chrome, Firefox, Edge, Safari). No plugins or extensions required.
Can I use it offline?
After initial load, most features work offline. The core logic runs entirely in your browser with no network dependency.
Comments
Comments are stored locally in your browser. Configure Giscus for cloud-based comments.