Convert text to binary encoding free — binary, hex, decimal and octal side by side, with UTF-8 bytes, bit view and a decoder. No sign-up.
Decode binary back to text
Decoded text shows up here.
What is text to binary encoding?
Text to binary encoding turns each character into the bits a computer stores for it. Every character has a numeric code, and binary is that code written in base 2 — the letter A (code 65) becomes 01000001, and “Hi” becomes 01001000 01101001. The encoding used here is UTF-8, the same encoding the web uses, so plain ASCII, accented letters and emoji all convert correctly and round-trip exactly.
Converting text to binary follows four steps, which this tool does automatically as you type: read the character’s code point, encode it as UTF-8 bytes (one to four bytes per character), render every byte as eight base-2 digits, and join the bytes with your chosen separator. The same bytes can be shown in other bases too — hexadecimal (48 65 6C 6C 6F), decimal (72 101 108 108 111) and octal (110 145 154 154 157) — which is why this page shows all four side by side.
How to use the text to binary encoder
- Type or paste your text. Binary, hex, decimal and octal appear instantly, with a per-character table underneath.
- Choose a byte separator — space, comma, colon or none — and turn on the 0b prefix if you are pasting the result into code.
- Copy any single format with its Copy button, or read the per-character table to see how each letter became its bytes.
- To go the other way, paste binary into the decoder at the bottom. It ignores spaces, commas and 0b prefixes, so a string copied from a hex dump or a debugger decodes without editing.
ASCII vs UTF-8 — and why emoji take 4 bytes
| Text | Code point | UTF-8 bytes | Binary |
|---|---|---|---|
| H | U+0048 | 1 byte (72) | 01001000 |
| i | U+0069 | 1 byte (105) | 01101001 |
| é | U+00E9 | 2 bytes (195, 169) | 11000011 10101001 |
| € | U+20AC | 3 bytes (226, 130, 172) | 11100010 10000010 10101100 |
| 😀 | U+1F600 | 4 bytes (240, 159, 152, 128) | 11110000 10011111 10011000 10000000 |
ASCII is a 7-bit repertoire of 128 characters — English letters, digits and punctuation — and every one of them is a single byte in UTF-8, with the same value. Characters outside that range expand: most accented Latin letters take 2 bytes, most other scripts take 3, and emoji take 4. That is why “Hi” is 2 bytes but “H😀” is 5. A converter that only handles ASCII silently mangles emoji; this one does not.
Binary, hex, decimal and octal — the same bytes, four views
These are not four different encodings. They are four ways of writing the same bytes: binary in base 2, octal in base 8, decimal in base 10 and hexadecimal in base 16. Programmers read hex because two hex digits are exactly one byte, and read binary when they need to see individual bits. If you only need the simple ASCII version, our Convert Letters to Binary tool does that job; this page is the encoding page, with UTF-8, all four bases and a decoder.
Try another style
Frequently Asked Questions
How do I convert text to binary?
Type or paste your text into the box above. The binary representation appears instantly, along with hexadecimal, decimal and octal.
What encoding does this tool use?
UTF-8, the encoding the web uses. Each character becomes its one-or-more UTF-8 bytes, and each byte becomes eight bits. ASCII text keeps the same values it always had.
How do I decode binary back to text?
Paste the binary into the decoder at the bottom. It accepts spaced bytes like “01001000 01101001” and continuous 8-bit groups, and ignores 0b prefixes.
Why is emoji binary so long?
Because emoji are outside the ASCII range. In UTF-8 they take 4 bytes — 32 bits — while an English letter takes 1 byte, or 8 bits.
What is the difference between this and Convert Letters to Binary?
That tool is the simple ASCII-only version. This page adds UTF-8 multi-byte characters, all four bases side by side, a per-character bit table and a decoder.
Is the text to binary encoder free?
Yes. Free, no sign-up, no limit. All encoding happens in your browser, so your text is never sent anywhere.
