Text to Binary Converter
Convert text to binary and binary back to text. Supports ASCII and UTF-8 encoding with space-separated bytes.
Text to Binary Converter tool
Example
Input: Hi!
Result: 01001000 01101001 00100001
Each character is encoded as UTF-8 and every byte is written as 8 binary digits: H is 72, i is 105 and ! is 33.
Characters in UTF-8 Binary
| Character | Code point | Bytes | Binary |
|---|---|---|---|
| A | U+0041 | 1 | 01000001 |
| a | U+0061 | 1 | 01100001 |
| Z | U+005A | 1 | 01011010 |
| 0 | U+0030 | 1 | 00110000 |
| (space) | U+0020 | 1 | 00100000 |
| ! | U+0021 | 1 | 00100001 |
| é | U+00E9 | 2 | 11000011 10101001 |
| € | U+20AC | 3 | 11100010 10000010 10101100 |
| 😀 | U+1F600 | 4 | 11110000 10011111 10011000 10000000 |
- Type or paste plain text into the Text input field to convert it to binary.
- View the space-separated 8-bit binary output that appears instantly for each character.
- To convert binary to text, enter space-separated binary values (e.g., 01001000 01101001) into the Binary input field.
- Multi-byte characters like emoji are encoded automatically as UTF-8, producing several 8-bit groups (plain ASCII text gives one group per character).
- Click the copy button to copy the binary output or decoded text to your clipboard.
How Text Becomes Binary Code
This converter turns text into binary, the 1s and 0s that computers store, and turns binary back into text. Each character becomes one or more 8-bit bytes, separated by spaces, so "Hi!" becomes 01001000 01101001 00100001.
Computers store letters as numbers. The capital letter A is number 65, which is 01000001 in binary. The tool uses UTF-8, the encoding used by the vast majority of web pages. In UTF-8, the 128 basic ASCII characters take one byte each. Those are the English letters, digits and common symbols. Other characters need more bytes: é takes 2, the euro sign takes 3 and most emoji take 4. So a short message with one emoji can give a longer binary string than you expect.
To decode, paste binary into the right-hand panel. Groups of up to 8 digits separated by spaces work, and so does one long run with no spaces, as long as its length is a multiple of 8. If a group holds anything other than 0 and 1, or the bytes do not form valid UTF-8, you get a clear error instead of garbled text.
Binary is a fun way to hide a message in a puzzle and a common task in computing classes. To see the same numbers in hexadecimal or decimal, use the Number Base Converter. For Unicode code points rather than bytes, try Text to Unicode.
Sources
Frequently Asked Questions
Related Tools
Text to Unicode Converter
Convert text to Unicode code points and back. Supports U+XXXX, HTML hex, HTML decimal, and 0x hex formats.
Text and WritingNumber Base Converter
Convert numbers between binary, octal, decimal, hexadecimal, and any custom base.
Math and NumbersBase64 Encode and Decode
Encode text to Base64 and decode Base64 strings back to readable text, with full UTF-8 support.
Developer ToolsHash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files right in your browser.
Developer Tools