radixflip

ASCII to Binary Converter

Type any text and its binary form appears instantly as you type — no Convert button on this page; encoding happens on every keystroke. Each character becomes one 8-bit byte, shown in the table character by character.

Convert ASCII Text to Binary

"Hi" in binary: 01001000 01101001
CharacterASCIIBinary₂ (8-bit)

How to convert ASCII to binary

  1. Take one character. Start with the first character of your text — say the H in "Hi".
  2. Find its ASCII code. The ASCII table assigns every character a number: H is 72, i is 105, A is 65, space is 32.
  3. Write the code in binary, padded to 8 bits. 72 is 1001000, padded to the full byte 01001000.
  4. Repeat for each character and join with spaces. "Hi" becomes 01001000 01101001.

The loop, visually

StartTake the next characterFind its ASCII code(A is 65)Write the code asan 8-bit byteMore characters left?Join the byteswith spacesThat's your text in binary Yes No

Example: "Cat": C → 67 → 01000011 → a → 97 → 01100001 → t → 116 → 01110100 → join: 01000011 01100001 01110100

One loop per character: every ASCII code becomes one full byte, padded to 8 bits so the bytes stay aligned.

Worked example: "Cat"

C is 67 = 01000011; a is 97 = 01100001; t is 116 = 01110100. So "Cat" in binary is 01000011 01100001 01110100. Type it above and check each byte against the table.

Full ASCII table

All 128 ASCII codes in decimal, binary, octal and hex — look any character up here.

CharacterDecimal₁₀Binary₂Octal₈Hexadecimal₁₆
NUL (null)000000000000
SOH100000001101
STX200000010202
ETX300000011303
EOT400000100404
ENQ500000101505
ACK600000110606
BEL (bell)700000111707
BS (backspace)8000010001008
HT (tab)9000010011109
LF (line feed)1000001010120A
VT1100001011130B
FF (form feed)1200001100140C
CR (carriage return)1300001101150D
SO1400001110160E
SI1500001111170F
DLE16000100002010
DC117000100012111
DC218000100102212
DC319000100112313
DC420000101002414
NAK21000101012515
SYN22000101102616
ETB23000101112717
CAN24000110003018
EM25000110013119
SUB2600011010321A
ESC (escape)2700011011331B
FS2800011100341C
GS2900011101351D
RS3000011110361E
US3100011111371F
' ' (space)32001000004020
'!'33001000014121
'"'34001000104222
'#'35001000114323
'$'36001001004424
'%'37001001014525
'&'38001001104626
'''39001001114727
'('40001010005028
')'41001010015129
'*'4200101010522A
'+'4300101011532B
','4400101100542C
'-'4500101101552D
'.'4600101110562E
'/'4700101111572F
'0'48001100006030
'1'49001100016131
'2'50001100106232
'3'51001100116333
'4'52001101006434
'5'53001101016535
'6'54001101106636
'7'55001101116737
'8'56001110007038
'9'57001110017139
':'5800111010723A
';'5900111011733B
'<'6000111100743C
'='6100111101753D
'>'6200111110763E
'?'6300111111773F
'@'640100000010040
'A'650100000110141
'B'660100001010242
'C'670100001110343
'D'680100010010444
'E'690100010110545
'F'700100011010646
'G'710100011110747
'H'720100100011048
'I'730100100111149
'J'74010010101124A
'K'75010010111134B
'L'76010011001144C
'M'77010011011154D
'N'78010011101164E
'O'79010011111174F
'P'800101000012050
'Q'810101000112151
'R'820101001012252
'S'830101001112353
'T'840101010012454
'U'850101010112555
'V'860101011012656
'W'870101011112757
'X'880101100013058
'Y'890101100113159
'Z'90010110101325A
'['91010110111335B
'\'92010111001345C
']'93010111011355D
'^'94010111101365E
'_'95010111111375F
'`'960110000014060
'a'970110000114161
'b'980110001014262
'c'990110001114363
'd'1000110010014464
'e'1010110010114565
'f'1020110011014666
'g'1030110011114767
'h'1040110100015068
'i'1050110100115169
'j'106011010101526A
'k'107011010111536B
'l'108011011001546C
'm'109011011011556D
'n'110011011101566E
'o'111011011111576F
'p'1120111000016070
'q'1130111000116171
'r'1140111001016272
's'1150111001116373
't'1160111010016474
'u'1170111010116575
'v'1180111011016676
'w'1190111011116777
'x'1200111100017078
'y'1210111100117179
'z'122011110101727A
'{'123011110111737B
'|'124011111001747C
'}'125011111011757D
'~'126011111101767E
DEL (delete)127011111111777F

Frequently asked questions

How do I convert ASCII to binary?

Take each character, find its ASCII code (A is 65), and write that code in binary as an 8-bit byte: 65 becomes 01000001. Join the bytes with spaces. Type text in the converter above and RadixFlip does it instantly as you type.

What is "A" in binary?

"A" is ASCII 65, which is 01000001 as an 8-bit byte. Without the padding it is the same value, 1000001 — the leading zero simply fills the byte.

What is "Hi" in binary?

"Hi" in binary is "01001000 01101001". H is 72 = 01001000 and i is 105 = 01101001.

Why are the groups padded to 8 bits?

Computers store text one byte per character, and a byte is 8 bits. Padding every group to 8 bits keeps the bytes aligned so a decoder can split the stream unambiguously — 0100000101000010 can only be read as two bytes, A then B.

What about characters that are not in ASCII?

Accented letters, other scripts and emoji are not ASCII — they are Unicode. This converter still encodes them: characters up to code 255 get an 8-bit group, and larger code points get a wider group, so nothing is silently dropped. The table in the converter shows each character's exact code.