JSONToonPro
Number utility tool

Text to Binary Converter

Convert any text or ASCII string to binary code instantly. Each character is converted to its 8-bit binary representation. The tool also converts binary back to text, both directions in one interface.

100% client sideInstant resultNo data sent
Text Input
Binary Output
Result appears here...

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

5 answers
Each character in the text is converted to its ASCII (or Unicode) code point, then that number is expressed in binary. For example, the letter 'A' has ASCII code 65, which is 01000001 in binary. Spaces between bytes make the output easier to read and copy.

More JSON Tools

About Text to Binary Conversion

Every character in digital text is ultimately stored as a number, and that number is stored in binary. The ASCII standard assigns a number from 0 to 127 to each common Latin character, control code, and punctuation mark. UTF-8 extends this to cover all Unicode characters using 1 to 4 bytes per character. This converter exposes those underlying binary values, useful for learning about character encoding, debugging low-level data issues, or exploring how text is represented in computer memory.