Skip to content
The Calculatorz
Computing & text

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.

Text and options

Conversion

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

CharacterBinaryCharacterBinary
A01000001a01100001
B01000010b01100010
C01000011c01100011
D01000100d01100100
E01000101e01100101
F01000110f01100110
G01000111g01100111
H01001000h01101000
I01001001i01101001
J01001010j01101010
K01001011k01101011
L01001100l01101100
M01001101m01101101
N01001110n01101110
O01001111o01101111
P01010000p01110000
Q01010001q01110001
R01010010r01110010
S01010011s01110011
T01010100t01110100
U01010101u01110101
V01010110v01110110
W01010111w01110111
X01011000x01111000
Y01011001y01111001
Z01011010z01111010
000110000Space00100000
100110001
200110010
300110011
400110100
500110101
600110110
700110111
800111000
900111001

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

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.

  1. Yergeau, F. (2003). UTF-8, a transformation format of ISO 10646 (RFC 3629, STD 63). Internet Engineering Task Force. View source
  2. Unicode Consortium. (2024). The Unicode Standard, version 16.0. View source
  3. Cerf, V. (1969). ASCII format for network interchange (RFC 20, STD 80). Internet Engineering Task Force. View source
  4. Weisstein, E. W. (n.d.). Binary. MathWorld—A Wolfram Web Resource. View source