Text to Binary Converter
Convert text to binary code — 8-bit groups for every byte — and see the matching decimal ASCII/byte codes and hex at the same time.
Loading calculator…
What this tool does
Convert text to binary code — 8-bit groups for every byte — and see the matching decimal ASCII/byte codes and hex at the same time. English letters, digits and punctuation are single bytes equal to their ASCII codes (H = 72 = 01001000). Accented characters, symbols and emoji take 2–4 UTF-8 bytes each, so their decimal and hex rows show the full byte sequence.
How to use the Text to Binary Converter
- Enter or select text.
- Read the calculated result; change any measurement to compare alternatives.
Formula
The text is encoded to UTF-8 bytes; each byte is written in base 2 padded to 8 bits. The same bytes are also shown as decimal codes (the ASCII codes for English text) and as hexadecimal, folding the text-to-ASCII conversion into the same result.
- text
- Text
English letters, digits and punctuation are single bytes equal to their ASCII codes (H = 72 = 01001000). Accented characters, symbols and emoji take 2–4 UTF-8 bytes each, so their decimal and hex rows show the full byte sequence.
Worked example
For text to binary converter, the following measurements illustrate the exact method: Text: Hello.
Inputs
- TextHello
Result
- Binary01001000 01100101 01101100 01101100 01101111
- ASCII / decimal byte codes72 101 108 108 111
- Hexadecimal bytes48 65 6C 6C 6F
- Bytes5
Results explained
- Binary
- Binary from the formula above. English letters, digits and punctuation are single bytes equal to their ASCII codes (H = 72 = 01001000). Accented characters, symbols and emoji take 2–4 UTF-8 bytes each, so their decimal and hex rows show the full byte sequence.
- ASCII / decimal byte codes
- ASCII / decimal byte codes from the formula above. English letters, digits and punctuation are single bytes equal to their ASCII codes (H = 72 = 01001000). Accented characters, symbols and emoji take 2–4 UTF-8 bytes each, so their decimal and hex rows show the full byte sequence.
- Hexadecimal bytes
- Hexadecimal bytes from the formula above. English letters, digits and punctuation are single bytes equal to their ASCII codes (H = 72 = 01001000). Accented characters, symbols and emoji take 2–4 UTF-8 bytes each, so their decimal and hex rows show the full byte sequence.
- Bytes
- Bytes from the formula above. English letters, digits and punctuation are single bytes equal to their ASCII codes (H = 72 = 01001000). Accented characters, symbols and emoji take 2–4 UTF-8 bytes each, so their decimal and hex rows show the full byte sequence.
Frequently asked questions
Type or paste the text and read the Binary row: each character becomes one or more 8-bit groups — H is 01001000, e is 01100101 — separated by spaces so the groups stay readable.
They are the same bytes written in base 10: for plain English text they are exactly the ASCII codes (A = 65, a = 97, space = 32), which is the text-to-ASCII conversion. The hex row shows the same bytes in base 16.
Emoji live far beyond the 128 ASCII characters, so UTF-8 stores them as four bytes. Each byte gets its own 8-bit group, and a binary-to-text decoder reassembles the four bytes into the single emoji.
ASCII is a table assigning numbers 0–127 to characters; binary is a way of writing numbers in base 2. 'Text to binary' usually means writing each character's ASCII (or UTF-8) number in binary — which is what this tool does.
Yes. Encoding runs in your browser; the text and its binary form are never uploaded or stored.