Text to Binary Converter
Convert text into binary using UTF-8 bytes or Unicode code points, with a choice of output base, 8-bit grouping and separator.
Your text is processed locally in your browser and is not uploaded to our servers.
Binary output
0 charactersWhat this tool does
Every character a computer stores is really a number, and every number is really a pattern of bits. This tool makes that visible: it takes your text and shows the binary — or hexadecimal, or decimal — behind each character. It is a learning aid, a debugging helper, and an encoder you can round-trip with the matching Binary to Text decoder.
How to use it
- Type or paste your text.
- Choose whether to encode as UTF-8 bytes (the standard, and what the decoder expects) or as Unicode code points.
- Pick the output base — binary, hexadecimal or decimal — and a separator.
- Copy the output, or use Swap to send it to the input for further work.
How the encoding works
In UTF-8 bytes mode, the text is first encoded as UTF-8 — the standard way text is stored and transmitted on the web. Each resulting byte becomes one value in the output. An ASCII letter is a single byte, an accented Latin character is two, a Korean or Chinese character is three, and most emoji are four. This is the mode to use if you want the binary to decode back to the original text.
In Unicode code point mode, each character's code point number is shown directly, regardless of how many bytes it would take to store. This is closer to the "one number per character" mental model and is useful for learning, but a single code point above 255 cannot be represented as one byte, so this mode is for inspection rather than round-tripping through the byte decoder.
Zero-padding keeps each value a fixed width — 8 bits for a byte in binary, 2 digits in hex — which lines the output up neatly and, crucially, lets the decoder split an unseparated stream back into bytes. Turning padding off produces shorter but ambiguous output. The whole conversion runs in your browser.
Examples
ASCII. The word Hi in UTF-8 binary is 01001000 01101001 — 72 and 105, the code points for H and i.
Hexadecimal. The same Hi in hex is 48 69, which is why hex is the compact way to show byte values.
Multi-byte. The character é in UTF-8 is two bytes: 11000011 10101001. In code-point mode it is a single value, 233. That difference is exactly why the byte mode round-trips and the code-point mode does not, for characters above 127.
Common use cases
- Learning how text is stored as bytes and bits.
- Teaching character encoding, ASCII and UTF-8.
- Debugging encoding issues by inspecting the exact bytes of a string.
- Creating binary-themed puzzles or messages.
- Preparing data for a system that expects binary or hex input.
Privacy and security
Encoding runs in your browser. Nothing is uploaded. Your settings are saved locally. See the privacy policy.
Frequently asked questions
What is the difference between UTF-8 bytes and code points?
A code point is the number assigned to a character in Unicode. UTF-8 is a way of storing that number as one to four bytes. For characters up to 127 they match; above that, one code point becomes several bytes. Use byte mode if you want to decode the binary back to text.
Why does my emoji produce four values?
Most emoji are stored as four UTF-8 bytes, so byte mode shows four values. Some emoji are built from several code points joined together and produce even more. That is how emoji are actually stored.
Can I convert the binary back to text?
Yes, use the Binary to Text tool. For a reliable round trip, encode in UTF-8 byte mode with padding on, so the decoder can split the stream into bytes correctly.
Should I keep padding on?
For anything you intend to decode, yes. Padding makes each byte a fixed 8 bits, which is what lets the decoder break the stream apart. Turn it off only when you want the shortest possible display and do not need to decode it.
What is the hexadecimal option for?
Hexadecimal is a compact way to show byte values — two digits per byte instead of eight. It is the format you will see in hex editors, color codes and many debugging tools.
Related tools
Tools that pair well with the Text to Binary.