Text to Binary

Two different meanings of “text to binary”, and a switch that says which one you got

Runs 100% in your browserNothing is uploaded to a serverInstant results

Direction

Base

One group per

UTF-8 byte is what a computer means and round-trips anything. Character is what a puzzle means. Pure ASCII is identical either way.

Input

Output

Copied!

“Text to binary” is two questions, and most converters silently answer one

Ask for the binary of the letter H and everyone agrees: 01001000. Ask for the binary of é and the answers split. One says 11101001, a single eight-bit group, because é is code point 233 and 233 in binary is that. The other says 11000011 10101001, two groups, because é encoded as UTF-8 is two bytes and always has been. Neither is wrong. They are answers to different questions, and a converter that picks one without telling you is the reason two people comparing outputs decide one of them is broken.

The UTF-8 bytes mode is what a programmer means. It is what actually travels down a wire or sits in a file, it round-trips absolutely anything including emoji, and every character outside the first 128 takes more than one group. The code points mode is what a puzzle, a homework question or a binary-tattoo generator means: one group per character, width set by the character itself. Pure ASCII input is byte-for-byte identical under both, which is exactly why the difference goes unnoticed until the first accented letter or emoji shows up and the output length doubles.

The separator matters more than it looks. Eight-bit groups split by spaces are how the answer is written on a worksheet and how a decoder expects to receive it. Unseparated, it becomes one long run that only decodes if the reader already knows the group width — which is fine for ASCII and quietly lossy for anything else. Commas and one-group-per-line both exist here because spreadsheets and diff tools want them.

Hexadecimal is the same numbers in a shorter coat. Two hex digits carry exactly one byte, so 48 69 is the same information as 01001000 01101001 in a quarter of the width, which is why every hex editor, colour picker and MAC address in the world is written that way rather than in binary. The toggle changes the base and nothing else.

Two characters, UTF-8 bytes, space separated

In
Hi
Out
01001000 01101001

ASCII in three bases

The printable range every one of these conversions agrees on. Above 127 the two modes diverge, which is what the mode switch is for.

CharacterBinaryHexDecimal
(space)001000002032
!001000012133
"001000102234
#001000112335
$001001002436
%001001012537
&001001102638
'001001112739
(001010002840
)001010012941
*001010102A42
+001010112B43
,001011002C44
-001011012D45
.001011102E46
/001011112F47
0001100003048
1001100013149
2001100103250
3001100113351
4001101003452
5001101013553
6001101103654
7001101113755
8001110003856
9001110013957
:001110103A58
;001110113B59
<001111003C60
=001111013D61
>001111103E62
?001111113F63
CharacterBinaryHexDecimal
@010000004064
A010000014165
B010000104266
C010000114367
D010001004468
E010001014569
F010001104670
G010001114771
H010010004872
I010010014973
J010010104A74
K010010114B75
L010011004C76
M010011014D77
N010011104E78
O010011114F79
P010100005080
Q010100015181
R010100105282
S010100115383
T010101005484
U010101015585
V010101105686
W010101115787
X010110005888
Y010110015989
Z010110105A90
[010110115B91
\010111005C92
]010111015D93
^010111105E94
_010111115F95
CharacterBinaryHexDecimal
`011000006096
a011000016197
b011000106298
c011000116399
d0110010064100
e0110010165101
f0110011066102
g0110011167103
h0110100068104
i0110100169105
j011010106A106
k011010116B107
l011011006C108
m011011016D109
n011011106E110
o011011116F111
p0111000070112
q0111000171113
r0111001072114
s0111001173115
t0111010074116
u0111010175117
v0111011076118
w0111011177119
x0111100078120
y0111100179121
z011110107A122
{011110117B123
|011111007C124
}011111017D125
~011111107E126

Text to Binary questions

Why is my accented letter two groups long?

Because you are in UTF-8 bytes mode, and in UTF-8 every character above code point 127 takes two, three or four bytes. é is two, — is three, an emoji is four. If you wanted a single group per character, switch to code points mode; if you are feeding the output to anything that will actually read it as text, stay on bytes, because bytes is what UTF-8 means.

What is the binary for a space?

01000000 is a common wrong answer. A space is code point 32, so it is 00100000, and it is a character like any other — it gets its own group. The other invisible ones people ask about: a newline is 00001010, a tab is 00001001, and a carriage return is 00001101. Whether your text contains carriage returns depends on which operating system typed it.

Can I convert binary back to text here?

This page runs one way by design, because “text to binary” and “binary to text” are searched as separate things and each deserves a page that opens pointing the right way. Paste binary into the box and the direction flips automatically; or go to the binary to text page, which starts in that direction and explains what to do with a blob that will not decode.