How to convert text to binary
- Choose Text → codes and a format: binary, hexadecimal, octal or decimal.
- Type your text. Each byte is shown as one group — for binary, 8 digits per byte.
- To decode, choose Codes → text and paste the codes. Spaces, commas and line breaks between groups are optional for binary (groups of 8) and hex (pairs); a
0xprefix on hex values is fine.
Example: “Hi” is 01001000 01101001 in binary, 48 69 in hex and 72 105 in decimal.
How text becomes binary
Computers store text as numbers. Each character is first given a number (its code point) by the Unicode standard — “H” is 72, “é” is 233, “😀” is 128,512. That number is then encoded into bytes, almost always using UTF-8:
- Basic English letters, digits and punctuation (the 128 ASCII characters) take 1 byte, so their binary is the same as in classic ASCII tables.
- Accented Latin, Greek, Cyrillic, Hebrew and Arabic letters take 2 bytes (“é” =
C3 A9). - Chinese, Japanese and Korean characters take 3 bytes; most emoji take 4.
This converter always uses UTF-8, which is what the web, email and modern operating systems use, so the results match what you'd see in a hex editor or a network capture.
Number systems at a glance
| Format | Base | Digits | One byte | “A” |
|---|---|---|---|---|
| Binary | 2 | 0–1 | 8 digits | 01000001 |
| Octal | 8 | 0–7 | up to 3 digits | 101 |
| Decimal | 10 | 0–9 | up to 3 digits | 65 |
| Hexadecimal | 16 | 0–9, A–F | 2 digits | 41 |
To convert a single number between bases (for example 255 → FF → 11111111), use the number base converter.
Frequently asked questions
What is “hello” in binary?
01101000 01100101 01101100 01101100 01101111 — one 8-bit byte per letter.
Why does an accented letter or emoji produce several bytes?
UTF-8 uses 1 byte for basic English characters and 2–4 bytes for everything else. So “é” is two bytes and most emoji are four.
Why do I get “not valid UTF-8” when decoding?
The bytes don’t form valid UTF-8 text — usually because a digit is missing or extra, the groups are misaligned, or the data is not text at all (for example part of an image).
Is my text uploaded?
No. The conversion runs in your browser.