Find your next tool

Browse tools or search by task

Explore JSONToonPro

Number Converter Tools

Text to Binary Converter – Convert Text to Binary Code

Convert text to binary code online using UTF-8 bytes. See 8-bit groups, copy binary output and reverse the conversion with the related translator.

Runs locally in your browser. Nothing you paste is uploaded.

Text to Binary workspace
Text Input
Binary Output
Result appears here...

How to Convert Text to Binary

Enter text to encode its UTF-8 bytes as groups of eight binary digits. Copy the groups as a byte representation. Use the binary translator to reverse the process with the same encoding.

How Text Encoding Works

A character is not always one byte. ASCII letters occupy one UTF-8 byte, while accented characters and emoji can occupy several. The output represents bytes, not a visual character count.

Text to Binary Examples

The letter A becomes 01000001. The word Hi becomes 01001000 01101001. A multi-byte character produces several groups, which must remain together and in order when decoding.

Unicode, Spacing, and Input Rules

Spaces between binary groups separate bytes; a space in the source text becomes its own byte. Keep all eight bits of each byte. Invalid UTF-8 sequences cannot be decoded into the original intended text.

More examples and technical details

How to Convert Text to Binary

Text to binary conversion works one character at a time. Every character you type has a numeric code assigned to it by a character encoding standard, and binary is simply that number written in base 2. The converter above does this instantly, but the manual process is short enough to follow by hand.

  1. Take the first character of your text.
  2. Look up its character code. For English letters, digits, and punctuation this is the ASCII value, for example the letter H is 72.
  3. Convert that number to binary using repeated division by 2, or read it off an ASCII table.
  4. Pad the result to eight digits with leading zeros so every character is a full byte.
  5. Repeat for every character and separate the bytes with spaces so the result stays readable.

Worked example: encoding "Hi"

H = 72 = 01001000
i = 105 = 01101001

"Hi" = 01001000 01101001

Why Eight Bits Per Character

A byte is eight bits, and eight bits can represent 256 different values (2 to the power of 8). That range was chosen because it comfortably covers the 128 ASCII characters with room to spare, and because early hardware was built around 8 bit words.

This is why the converter pads every character to eight digits. The letter A is 65, which is 1000001 in binary using only seven digits, but it is written as 01000001 so that each character occupies exactly one byte. Without that padding, a decoder would have no reliable way to know where one character ends and the next begins.

ASCII, Unicode, and UTF-8

ASCII is the original character encoding standard, finalised in 1963. It defines 128 characters: the English alphabet in both cases, the digits 0 to 9, common punctuation, and 33 non printing control codes such as tab, newline, and carriage return. Because 128 values fit in seven bits, every ASCII character fits comfortably inside a single byte.

ASCII covers English and almost nothing else, which is why Unicode exists. Unicode assigns a number, called a code point, to every character in every writing system, plus symbols and emoji. UTF-8 is the encoding that turns those code points into bytes, and it was designed so that the first 128 code points encode to exactly the same single bytes as ASCII. That backward compatibility is why plain English text looks identical in both.

The practical consequence for this tool: English letters, digits, and punctuation each produce one byte. Accented characters, Greek, Cyrillic, Arabic, and CJK characters produce two or three bytes each, and emoji usually produce four. The converter handles all of them correctly using UTF-8.

Things That Trip People Up

  • Uppercase and lowercase are different characters with different codes. A is 65 and a is 97, a gap of exactly 32.
  • The space character is not nothing. It is character 32, which is 00100000 in binary.
  • Accented letters, emoji, and non Latin scripts need more than one byte each, because they live outside the original 128 character ASCII range.

ASCII Conversion Table

Every printable ASCII character with its decimal code, binary byte, and hexadecimal byte. Codes 0 to 31 are control characters and are not printable, so they are not listed here.

CharDecBinaryHex
space320010000020
!330010000121
"340010001022
#350010001123
$360010010024
%370010010125
&380010011026
'390010011127
(400010100028
)410010100129
*42001010102A
+43001010112B
,44001011002C
-45001011012D
.46001011102E
/47001011112F
0480011000030
1490011000131
2500011001032
3510011001133
4520011010034
5530011010135
6540011011036
7550011011137
CharDecBinaryHex
8560011100038
9570011100139
:58001110103A
;59001110113B
<60001111003C
=61001111013D
>62001111103E
?63001111113F
@640100000040
A650100000141
B660100001042
C670100001143
D680100010044
E690100010145
F700100011046
G710100011147
H720100100048
I730100100149
J74010010104A
K75010010114B
L76010011004C
M77010011014D
N78010011104E
O79010011114F
CharDecBinaryHex
P800101000050
Q810101000151
R820101001052
S830101001153
T840101010054
U850101010155
V860101011056
W870101011157
X880101100058
Y890101100159
Z90010110105A
[91010110115B
\92010111005C
]93010111015D
^94010111105E
_95010111115F
`960110000060
a970110000161
b980110001062
c990110001163
d1000110010064
e1010110010165
f1020110011066
g1030110011167
CharDecBinaryHex
h1040110100068
i1050110100169
j106011010106A
k107011010116B
l108011011006C
m109011011016D
n110011011106E
o111011011116F
p1120111000070
q1130111000171
r1140111001072
s1150111001173
t1160111010074
u1170111010175
v1180111011076
w1190111011177
x1200111100078
y1210111100179
z122011110107A
{123011110117B
|124011111007C
}125011111017D
~126011111107E

Looking for a different conversion? Browse every developer tool including binary, hex, octal, and Base64 converters.

Frequently asked questions

How do I convert text to binary?

Enter text and copy the eight-bit UTF-8 byte groups.

Does the tool support Unicode and special characters?

Yes. TextEncoder converts Unicode text into UTF-8 bytes, including multi-byte characters.

What input format should I use?

Enter ordinary text. The output separates eight-bit bytes with spaces.

Is any input uploaded to a server?

No. Input is processed in this browser tab and is not uploaded by the tool. Copy and download are actions you control; ordinary page analytics do not receive tool input.