Text to Binary Converter (and Binary to Text)
Translate text to binary code and binary back to text using UTF-8, for English and every other language and emoji.
How to use this calculator
To translate text to binary, type or paste your text and choose Text → binary. Each character is encoded as UTF-8 bytes and each byte is written as 8 binary digits. To decode, paste binary digits (spaces and line breaks are ignored) and choose Binary → text; the number of digits must be a multiple of 8. Works with any language, including Urdu, Hindi, Arabic and Chinese, and with emoji.
Formula
Text → UTF-8 bytes → each byte written in base 2 with 8 digits. ASCII characters use one byte; other characters use two to four bytes. Decoding reverses the steps and reports invalid UTF-8.
Binary translator for every language
Unlike simple ASCII translators, this text to binary converter uses UTF-8, so it handles accented letters, Urdu, Arabic, Hindi, Chinese, Japanese and emoji correctly, and it shows the hexadecimal bytes and bit count alongside the binary.
Letters and digits in binary
| Character | Binary | Character | Binary |
|---|---|---|---|
| A | 01000001 | a | 01100001 |
| B | 01000010 | b | 01100010 |
| C | 01000011 | c | 01100011 |
| D | 01000100 | d | 01100100 |
| E | 01000101 | e | 01100101 |
| F | 01000110 | f | 01100110 |
| G | 01000111 | g | 01100111 |
| H | 01001000 | h | 01101000 |
| I | 01001001 | i | 01101001 |
| J | 01001010 | j | 01101010 |
| K | 01001011 | k | 01101011 |
| L | 01001100 | l | 01101100 |
| M | 01001101 | m | 01101101 |
| N | 01001110 | n | 01101110 |
| O | 01001111 | o | 01101111 |
| P | 01010000 | p | 01110000 |
| Q | 01010001 | q | 01110001 |
| R | 01010010 | r | 01110010 |
| S | 01010011 | s | 01110011 |
| T | 01010100 | t | 01110100 |
| U | 01010101 | u | 01110101 |
| V | 01010110 | v | 01110110 |
| W | 01010111 | w | 01110111 |
| X | 01011000 | x | 01111000 |
| Y | 01011001 | y | 01111001 |
| Z | 01011010 | z | 01111010 |
| 0 | 00110000 | Space | 00100000 |
| 1 | 00110001 | ||
| 2 | 00110010 | ||
| 3 | 00110011 | ||
| 4 | 00110100 | ||
| 5 | 00110101 | ||
| 6 | 00110110 | ||
| 7 | 00110111 | ||
| 8 | 00111000 | ||
| 9 | 00111001 |
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewWasiMathematics and Physics Instructor, Mechanical Engineer
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
How do I convert text to binary?
Each character is turned into its byte value and written in base 2. H is 72, which is 01001000 in binary.
How do I convert binary to text?
Split the binary into groups of 8 bits, convert each group to a number and look up the character. 01001000 01101001 = 72 105 = Hi.
Why are there 8 digits per character?
Computers store text in bytes of 8 bits. Standard English letters need only 7 bits, but they are written with a leading 0 to fill the byte.
Why do some characters have 16 or more bits?
UTF-8 encodes characters outside ASCII with 2 to 4 bytes. Urdu and Arabic letters use 2 bytes, Hindi and Chinese characters 3 bytes, and emoji 4 bytes.
What is UTF-8?
UTF-8 is the standard way to store Unicode text as bytes and is used by almost all web pages. Its first 128 values are the same as ASCII.
Why does my binary fail to decode?
The digits must be only 0 and 1, the total must be a multiple of 8, and the bytes must form valid UTF-8. A missing or extra digit shifts every byte after it.
Can I write binary without spaces?
Yes. Choose One continuous string for output; for decoding, spaces are optional.
What is the binary code for A?
Capital A is 01000001 and lowercase a is 01100001.
Is binary code a secret code?
No. Binary is simply how the text is stored; anyone can decode it. Use proper encryption to keep messages private.
How many bits are in a word?
Each character takes at least 8 bits. The word "Hello" is 5 bytes, or 40 bits, in UTF-8.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Yergeau, F. (2003). UTF-8, a transformation format of ISO 10646 (RFC 3629, STD 63). Internet Engineering Task Force. View source
- Unicode Consortium. (2024). The Unicode Standard, version 16.0. View source
- Cerf, V. (1969). ASCII format for network interchange (RFC 20, STD 80). Internet Engineering Task Force. View source
- Weisstein, E. W. (n.d.). Binary. MathWorld—A Wolfram Web Resource. View source