Skip to main content

Binary translator

Text to binary and back. Paste either one and it works out which way to go.

Input type

Auto treats a draft starting with 0 or 1 as binary. Choose Text for a literal like 101.

Encoding
Output spacing

Updates as you type. Binary accepts spaces, commas and line breaks, or a continuous bitstream. Every group must be complete. Numeric views always separate bytes.

Enter text or binary to begin

PNG contains the complete binary and text, or asks for shorter input if it cannot fit. Limits: 8,192 bytes and 131,072 source UTF-16 units. Your input stays in this page; it is not uploaded or saved automatically.

Your next step

Need hex or Base64 instead?

View the same bytes in another format.

Hex and Base64
Hex and Base64

Read-only representations of the current validated bytes. Base64 encodes bytes; it does not encrypt them.

Enter valid input to view these formats.

How binary translation works

Bytes and characters

UTF-8 represents text as bytes. Each byte appears as eight bits here, and one character may need several bytes. ASCII mode uses seven bits and accepts only characters from U+0000 through U+007F.

Binary input accepts spaces, commas and line breaks as separators. Every separated group must have the selected width. An uninterrupted bitstream must divide evenly into that width. Invalid groups or UTF-8 sequences stop conversion rather than returning a successful prefix.

Worked examples

A is 01000001 in UTF-8, hexadecimal 41 and decimal 65. In seven-bit ASCII it is 1000001. The letter é uses two UTF-8 bytes: 11000011 10101001, or C3 A9. 😀 uses F0 9F 98 80.

The text copy retains whitespace and control characters. The labeled inspection view escapes invisible characters so you can identify them; it does not change the copied bytes. A leading UTF-8 BOM is retained as U+FEFF.

Copying and local images

Download text keeps the complete validated text. The 1200×628 PNG is for short conversions and manual attachment. If the full content cannot fit at readable sizes, shorten it or use text instead.

Text stays in the open page. There is no automatic storage, share URL or upload. Public scripts and fonts are fetched from this site. Standards reviewed October 11, 2026; separator and size limits are application choices.

ASCII to binary table

ASCII has 128 values. Seven-bit groups show ASCII mode; byte-padded groups show the same values in UTF-8. Control names identify nonprinting characters.

Common ASCII values
CharacterDecimalASCII (7 bits)Byte (8 bits)Hex
A6510000010100000141
a9711000010110000161
04801100000011000030
Space3201000000010000020
Show all 128 ASCII values
All ASCII values, decimal 0 through 127
CharacterDecimalASCII (7 bits)Byte (8 bits)Hex
NUL000000000000000000
SOH100000010000000101
STX200000100000001002
ETX300000110000001103
EOT400001000000010004
ENQ500001010000010105
ACK600001100000011006
BEL700001110000011107
BS800010000000100008
HT900010010000100109
LF100001010000010100A
VT110001011000010110B
FF120001100000011000C
CR130001101000011010D
SO140001110000011100E
SI150001111000011110F
DLE1600100000001000010
DC11700100010001000111
DC21800100100001001012
DC31900100110001001113
DC42000101000001010014
NAK2100101010001010115
SYN2200101100001011016
ETB2300101110001011117
CAN2400110000001100018
EM2500110010001100119
SUB260011010000110101A
ESC270011011000110111B
FS280011100000111001C
GS290011101000111011D
RS300011110000111101E
US310011111000111111F
Space3201000000010000020
!3301000010010000121
"3401000100010001022
#3501000110010001123
$3601001000010010024
%3701001010010010125
&3801001100010011026
'3901001110010011127
(4001010000010100028
)4101010010010100129
*420101010001010102A
+430101011001010112B
,440101100001011002C
-450101101001011012D
.460101110001011102E
/470101111001011112F
04801100000011000030
14901100010011000131
25001100100011001032
35101100110011001133
45201101000011010034
55301101010011010135
65401101100011011036
75501101110011011137
85601110000011100038
95701110010011100139
:580111010001110103A
;590111011001110113B
<600111100001111003C
=610111101001111013D
>620111110001111103E
?630111111001111113F
@6410000000100000040
A6510000010100000141
B6610000100100001042
C6710000110100001143
D6810001000100010044
E6910001010100010145
F7010001100100011046
G7110001110100011147
H7210010000100100048
I7310010010100100149
J741001010010010104A
K751001011010010114B
L761001100010011004C
M771001101010011014D
N781001110010011104E
O791001111010011114F
P8010100000101000050
Q8110100010101000151
R8210100100101001052
S8310100110101001153
T8410101000101010054
U8510101010101010155
V8610101100101011056
W8710101110101011157
X8810110000101100058
Y8910110010101100159
Z901011010010110105A
[911011011010110115B
\921011100010111005C
]931011101010111015D
^941011110010111105E
_951011111010111115F
`9611000000110000060
a9711000010110000161
b9811000100110001062
c9911000110110001163
d10011001000110010064
e10111001010110010165
f10211001100110011066
g10311001110110011167
h10411010000110100068
i10511010010110100169
j1061101010011010106A
k1071101011011010116B
l1081101100011011006C
m1091101101011011016D
n1101101110011011106E
o1111101111011011116F
p11211100000111000070
q11311100010111000171
r11411100100111001072
s11511100110111001173
t11611101000111010074
u11711101010111010175
v11811101100111011076
w11911101110111011177
x12011110000111100078
y12111110010111100179
z1221111010011110107A
{1231111011011110117B
|1241111100011111007C
}1251111101011111017D
~1261111110011111107E
DEL1271111111011111117F

Sources

Common questions

Can I paste binary with commas?

Yes. Spaces, commas, CR and LF are accepted. Tabs and other whitespace are rejected, and mixed-width groups need correction.

Why does an emoji need several bytes?

UTF-8 uses a variable number of bytes per code point. A visible emoji can also contain several code points.

Does Swap reverse the bits?

Swap exchanges both panes and preserves their formats and drafts. It does not invert bits or change the encoding.

What happens to invalid binary?

The tool identifies the source problem and disables current copy and image output until it is fixed.

Is my text sent to a service?

Conversion runs in this browser. The tool does not put text in storage, URLs or network requests.

How does automatic input detection work?

Input beginning with 0 or 1 is treated as binary, even if its last group is incomplete or contains a typo. Input containing only supported separators is also binary. Other input is text. Open More and choose Text to translate literal text such as 101. Detection never chooses the encoding or repairs invalid bytes.

Can I edit hex, decimal or octal?

Choose the format below Translation, then edit that pane. Hex needs two digits per byte, octal needs three, and decimal accepts one to three. Separate bytes with spaces, commas or line breaks. Values must be 0 through 255, or 0 through 127 in ASCII mode. The complete sequence must also be valid in the selected encoding.

Privacy choices

Google messaging can contact Google before you choose. Ads stay off until advertising consent is verified. Google Analytics needs your consent in the EEA, UK and Switzerland, or when your country cannot be determined, and runs by default elsewhere unless you reject it or send Global Privacy Control.

Changing privacy choices can reload this page and clear unsaved entries. Copy or download any work you want to keep first.