Text to Binary
Translate text into binary bytes or binary back into text. Correct UTF-8 handling for every language, emoji included.
Convert text into its UTF-8 binary bytes — or binary back into text — with correct multi-byte handling for every language and emoji. Encoding walks each character through the standard TextEncoder; decoding accepts only clean groups of eight bits and reports anything else as an error instead of guessing.
How to use Text to Binary
- Choose the direction: Text → Binary or Binary → Text.
- Paste the input; the result appears immediately.
- Watch the error line if your binary is not a clean multiple of eight bits.
Who it is for
Computer-science students learning UTF-8 hands-on, developers debugging byte-level protocols, puzzle makers encoding clues, and teachers demonstrating why a Bengali character takes three bytes while a Latin one takes one.
How it works
- Encoding uses the standard TextEncoder, so "Hi" becomes two bytes while 👍 becomes four — the real UTF-8 representation, not a simplified ASCII-only approximation.
- Bytes render as eight-bit groups separated by spaces, matching how textbooks and documentation print them.
- Decoding strips any non-01 characters, requires a whole number of bytes, and decodes strictly as UTF-8 with clear errors for malformed input.
What it cannot do
- It converts between text and bytes — it does not interpret what the bytes mean beyond UTF-8.
- Very long inputs produce long output; a megabyte of text becomes roughly nine megabytes of binary digits.
Sample input & output
Text: Hi!
01001000 01101001 00100001 (UTF-8 8-bit octets: H = 0x48, i = 0x69, ! = 0x21)
Frequently asked questions
Why does one emoji become four groups of bits?
Emoji live outside the one-byte ASCII range, so UTF-8 encodes them as four bytes. That is the honest size of the character, not padding.
Can I paste binary copied from a hex dump?
Not directly — hex uses letters A–F. Convert the hex to binary first, or paste only the 0s and 1s.
Is this the same binary a computer really uses?
Yes — UTF-8 is the web’s actual encoding, and the groups shown are the true byte values in memory.
How are non-ASCII characters like Bengali letters or emoji encoded into binary?
Modern web text uses UTF-8 (RFC 3629), a variable-width encoding of 1 to 4 8-bit octets per Unicode code point. Basic ASCII (U+0000–U+007F) takes one 8-bit byte starting with 0; Bengali characters (U+0980–U+09FF) encode into three 8-bit bytes (1110xxxx 10xxxxxx 10xxxxxx); and 4-byte emoji encode via TextEncoder/TextDecoder so decoding reconstructs the exact grapheme losslessly.
Why does uppercase 'A' (01000001) differ from lowercase 'a' (01100001) by just one bit?
Designers of the 1963 ASCII standard placed uppercase A–Z at decimal 65–90 (0x41–0x5A) and lowercase a–z at 97–122 (0x61–0x7A) — a clean offset of 32 (2⁵), meaning only bit 5 flips between upper- and lowercase ASCII letters.
What input formatting is required when decoding binary back into plain text?
Paste 8-bit byte groups separated by spaces or newlines (or a continuous multiple-of-8 bit stream of 0s and 1s). If a group is not composed of valid bits or forms an invalid truncated UTF-8 byte sequence, the tool reports a clear validation message instead of outputting garbled mojibake.
Is binary encoding a form of encryption?
No — binary UTF-8 representation is merely base-2 display of the exact raw bytes every computer already stores in memory, with zero secret key or cryptographic protection. Never use binary, Base64, or ROT13 to conceal passwords or confidential data.