Text to Binary Converter
Converters · Added
Convert text into binary, octal, decimal or hexadecimal and read it back again, with one choice most converters make silently: whether each value is a UTF-8 byte or a Unicode code point. Both answers are correct under different definitions and they differ the moment your text leaves ASCII, so the setting is explicit here, and a character-by-character table shows exactly which is which.
Encoded
01001000 01100101 01101100 01101100 01101111- Characters
- 5
- UTF-8 bytes
- 5
- Units encoded
- 5
- Output length
- 44 characters
Character by character
| Character | Code point | UTF-8 bytes | Encoded |
|---|---|---|---|
| H | U+0048 | 1 | 01001000 |
| e | U+0065 | 1 | 01100101 |
| l | U+006C | 1 | 01101100 |
| l | U+006C | 1 | 01101100 |
| o | U+006F | 1 | 01101111 |
Bytes and code points differ the moment the text leaves ASCII. The character é is one code point (U+00E9) and two UTF-8 bytes; an emoji is one code point and four bytes. Neither answer is wrong — but a value produced one way and read back the other will not round-trip, so it is worth knowing which one you were given.
How to use the text to binary converter
- 1Choose a direction — text to numbers, or numbers back to text.
- 2Type or paste your input. Encoded input can be separated by spaces or commas, or written in even fixed-width groups.
- 3Pick the base: binary, octal, decimal or hexadecimal. When decoding, the tool says if the input looks like a different base and offers to switch.
- 4Choose whether each value is a UTF-8 byte or a Unicode code point. Bytes are what files and networks carry, and are the right default.
- 5Read the per-character table to see the code point and the byte count behind each value.
Examples
A word in binary
- Input
- Hi
- Result
- 01001000 01101001
Two characters, two bytes, eight bits each.
An accented character
- Input
- é in hexadecimal
- Result
- C3 A9 as UTF-8 bytes, or E9 as a code point
One character, two bytes. This is the distinction that trips up most conversions.
Decoding back
- Input
- 01001000 01100101 01101100 01101100 01101111
- Result
- Hello
Input that will not decode
- Input
- 0100100 as binary
- Result
- An explanation that seven digits cannot be split into bytes, rather than a wrong answer
About the text to binary converter
From character to number to digits
Every conversion here is two steps. First the text becomes numbers: either the Unicode code point of each character, or the sequence of bytes UTF-8 uses to store it. Then each number is written in the base you chose. Nothing is invented in either step, which is why the process reverses exactly.
The per-character table exists to make that visible. It shows the character, its code point in the U+ notation, how many bytes UTF-8 needs for it, and the digits produced — so when the byte count and the character count disagree, you can see precisely where.
Why UTF-8 uses a variable number of bytes
A fixed four bytes per character would represent every character Unicode defines and would also quadruple the size of ordinary English text. UTF-8 avoids that by making common characters cheap: ASCII stays one byte, and only less common characters cost more.
The design has a property that made it win. Because ASCII text is byte-for-byte identical in UTF-8, every existing ASCII file was already valid UTF-8 on the day the encoding appeared. That backward compatibility, more than elegance, is why UTF-8 is now what the web runs on.
Where binary output is actually useful
Reading protocol dumps and file headers, where a byte-level view is the only way to see what is really there. Teaching, because seeing the letter A as 01000001 makes the idea that text is numbers concrete in a way an explanation does not. And puzzles and capture-the-flag challenges, where binary is a common first layer.
What it is not useful for is storage or transmission. Binary text is eight times the size of the bytes it describes, so anything that needs to move data compactly uses the bytes themselves, or Base64 when the channel only tolerates text.
Frequently asked questions
How is this different from the number base converter?
What is the difference between a byte and a code point?
Why does an emoji produce four values?
Is this ASCII or UTF-8?
Why does the padding matter?
Is this encryption?
Related tools
Number Base Converter
Converters
Convert between binary, octal, decimal, hexadecimal and any base from 2 to 36.
Base64 Encoder / Decoder
Developer Tools
Encode text to Base64 and decode it back, with full Unicode and URL-safe support.
URL Encoder / Decoder
Developer Tools
Percent-encode and decode URLs and query parameters, with a query string breakdown.