How text becomes binary
Every character has a Unicode code point. UTF-8, the encoding used by almost all web pages, stores that code point as one to four bytes, and each byte is 8 bits. The converter encodes your text with UTF-8, then writes each byte in the format you choose.
The letters in "Hi!" are ASCII, so each is one byte equal to its ASCII code: H = 72 = 01001000, i = 105 = 01101001 and ! = 33 = 00100001. The euro sign € is code point U+20AC and takes three bytes, E2 82 AC in hex.
| Code points | Bytes | Examples |
|---|---|---|
| U+0000–U+007F | 1 | ASCII letters, digits, punctuation |
| U+0080–U+07FF | 2 | é, ñ, Greek, Cyrillic |
| U+0800–U+FFFF | 3 | €, most CJK characters |
| U+10000–U+10FFFF | 4 | emoji such as 😀 |
Decoding bytes back to text
Choose Bytes → text, pick the byte format and paste the bytes. Separate them with spaces, commas or new lines; binary written without separators is split into 8-bit groups and hex into 2-digit groups. A 0b or 0x prefix on each byte is accepted.
If a value is over 255, a binary group is not a whole number of bytes, or the bytes do not form valid UTF-8 (for example a lone C3), you get an error instead of garbled text.
ASCII versus Unicode
ASCII defines codes 0 to 127 only. Those code points encode to the same single byte in UTF-8, so an ASCII table and this converter agree for English text. Characters outside ASCII have no ASCII code; the table shows their Unicode code point and UTF-8 bytes instead.