Text to Binary Converter

Convert plain text to binary code and back using each character's ASCII/UTF-8 representation, including multi-byte characters. Useful for computer science homework, decoding a binary message, or creating a hidden-message puzzle, instantly and free in your browser.

Input
Output

Usage examples

Learning how computers represent text

See the exact binary bytes behind any word or sentence you type, based on its UTF-8 encoding.

Decoding a binary message

Paste a string of 8-bit binary groups and convert it back to readable text.

Checking multi-byte characters

See how emoji and non-Latin characters take up more than one byte in UTF-8.

Completing a computer science homework assignment

Convert a short word like "Hi" to binary to check your own by-hand conversion against the correct 8-bit byte values.

Creating a simple puzzle or hidden message

Convert a short phrase into binary to use as a puzzle for someone else to decode back into text.

Quick reference

Uppercase letters (A-Z)

CharacterBinaryDecimalHex
A010000016541
B010000106642
C010000116743
D010001006844
E010001016945
F010001107046
G010001117147
H010010007248
I010010017349
J01001010744A
K01001011754B
L01001100764C
M01001101774D
N01001110784E
O01001111794F
P010100008050
Q010100018151
R010100108252
S010100118353
T010101008454
U010101018555
V010101108656
W010101118757
X010110008858
Y010110018959
Z01011010905A

Lowercase letters (a-z)

CharacterBinaryDecimalHex
a011000019761
b011000109862
c011000119963
d0110010010064
e0110010110165
f0110011010266
g0110011110367
h0110100010468
i0110100110569
j011010101066A
k011010111076B
l011011001086C
m011011011096D
n011011101106E
o011011111116F
p0111000011270
q0111000111371
r0111001011472
s0111001111573
t0111010011674
u0111010111775
v0111011011876
w0111011111977
x0111100012078
y0111100112179
z011110101227A

Digits (0-9)

CharacterBinaryDecimalHex
0001100004830
1001100014931
2001100105032
3001100115133
4001101005234
5001101015335
6001101105436
7001101115537
8001110005638
9001110015739

Punctuation

CharacterBinaryDecimalHex
(space)001000003220
!001000013321
"001000103422
#001000113523
$001001003624
%001001013725
&001001103826
'001001113927
(001010004028
)001010014129
*00101010422A
+00101011432B
,00101100442C
-00101101452D
.00101110462E
/00101111472F
:00111010583A
;00111011593B
<00111100603C
=00111101613D
>00111110623E
?00111111633F
@010000006440

Frequently asked questions

Why does one character sometimes produce more than 8 bits?

Text on the web is encoded as UTF-8, where each character can take 1 to 4 bytes depending on which character it is. Basic English letters and numbers take 1 byte (8 bits), but accented letters, non-Latin scripts, and emoji take more.

Does this work for any language?

Yes — since the conversion is based on UTF-8 byte encoding rather than a fixed character set, any text in any supported language or script converts correctly.

How exactly should binary input be formatted?

Enter each byte as a group of exactly 8 ones and zeros, with a space between each group, for example "01001000 01101001" for "Hi". Groups that aren't exactly 8 bits, or that contain characters other than 0 and 1, will trigger a validation error.

Is this the same as ASCII, or specifically UTF-8?

For plain English text and numbers, ASCII and UTF-8 produce identical 8-bit results, since UTF-8 was designed to be backward-compatible with ASCII. The difference only shows up with characters outside basic English, which ASCII can't represent at all but UTF-8 encodes using multiple bytes.

Does converting text to binary and back always return the exact original text?

Yes, as long as the binary wasn't altered in between. Since the conversion is a direct, lossless mapping of UTF-8 bytes, converting text to binary and immediately back to text reproduces the original text exactly, including spaces, punctuation, and emoji.

Why do some binary groups start with 1110 or 11110?

Those are UTF-8's lead-byte markers for multi-byte characters — a byte starting with 1110 signals the first of a 3-byte sequence, and 11110 signals the first of a 4-byte sequence, which is how decoders know how many following bytes belong to the same character.

Is my input sent to a server?

No. All conversions happen entirely in your browser, and nothing you type or paste is ever sent to a server.