Text to Binary Converter
Convert text to binary, hexadecimal, octal or decimal bytes and decode bytes back to text, using UTF-8 so accents and emoji round-trip correctly.
Reviewed 23 November 2026 · Free · No account needed
How to use
- Choose Text → bytes or Bytes → text, then pick binary, hex, octal or decimal.
- Type or paste your input; the result updates as you type.
- For encoding, choose a separator: space, comma, new line or none.
- Copy the result, or use Use output as input to check a round trip.
Example
Input: Hi
Output: 01001000 01101001
How it works
The text is encoded to UTF-8 bytes; each byte is then written in the chosen base, padded to a fixed width for binary, hex and octal. Decoding parses the bytes and decodes them as UTF-8.
Binary uses 8 digits per byte, hexadecimal 2, octal 3 and decimal as many as needed. 'H' is byte 72 = 01001000 = 48 = 110.
'Hi' is 01001000 01101001 in binary, 48 69 in hex, 110 151 in octal and 72 105 in decimal.
Limits and edge cases
- Text is converted through its UTF-8 bytes, so an accented letter takes two bytes and an emoji up to four.
- Decoded bytes must form valid UTF-8; invalid sequences are reported instead of replaced.
- Unseparated binary must be a multiple of 8 digits and unseparated hex a multiple of 2.
- It encodes characters, not files. Use a file-to-Base64 tool for binary data.
- 'é' is two bytes (c3 a9) and '€' is three (e2 82 ac), so one character can produce several groups.
- A byte value above 255 in decimal input is rejected as not being a single byte.
- 0x and 0b prefixes and commas, colons or dashes between bytes are accepted when decoding.
Privacy
Conversion runs locally in your browser. The text you enter is never uploaded or stored.
About this page
Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.
Guides that use Text to Binary Converter
Related tools
Questions about Text to Binary Converter
Why does one character sometimes become several bytes?
Because text is encoded as UTF-8. Plain English letters take one byte, accented letters like é take two, characters such as the euro sign take three and most emoji four. So 'é' converts to 11000011 10101001. This is how almost all modern software stores text, so the output matches what a program would see.
How do I convert binary back into text?
Switch to Bytes → text, choose binary and paste the groups of eight digits, separated by spaces or not. The tool decodes them as UTF-8. If the number of digits is not a multiple of eight, or the bytes do not form valid text, it tells you what is wrong instead of printing garbage characters.
What is the difference between binary, hex, octal and decimal output?
They are the same bytes written in different bases. Binary shows every bit, hexadecimal packs a byte into two digits and is common in programming, octal uses three digits per byte and appears in Unix permissions, and decimal gives the plain 0-255 value. Choose whichever the system you are working with expects.
Does it work for files or images?
No, it converts typed or pasted text only. Representing a file as text needs an encoding such as Base64, which is a different job. For that, use the Base64 converter or the image to Base64 tool, both of which also run entirely in your browser.