ASCII To Binary

Convert text to binary, turning each character into its ASCII binary code. No signup. Ideal for students, programmers and anyone learning how text is stored as binary.

Remove Ads
Words Limit/Search : 3000
Upto 30k Words Go Pro

Upload File
Remove Ads
Remove Ads

Share on Social Media:

This ASCII to binary converter turns text into binary code, one group of binary digits per character. Type or paste your text, or upload a .txt file, click Convert to Binary, and the tool returns the binary code for every character, with the groups separated by spaces. It is free, needs no signup, and works on any device.

One thing to know before you start: the tool drops leading zeros. The letter H, ASCII code 72, comes out as 1001000 — seven digits, not the eight-digit 01001000 you may see in textbooks. The groups are still one per character and still in the same order, so the output is easy to read once you know the rule. This page shows you the exact output to expect, with worked examples checked against the tool itself.

On this page

  1. How to Convert ASCII to Binary Step by Step
  2. What ASCII Is and How Text Becomes Binary
  3. ASCII Binary Versus Plain Binary Numbers
  4. Who Converts ASCII to Binary
  5. Pro Tips for Working With ASCII Binary
  6. Common ASCII to Binary Mistakes to Avoid
  7. Related Tools You May Need Next
  8. Frequently Asked Questions

How to Convert ASCII to Binary Step by Step

  1. Enter your text. Type or paste it into the box labelled "Enter or paste your Ascii". Plain English text — letters, digits and punctuation — gives the cleanest result, one binary group per character.
  2. Or upload a .txt file. Click Upload File and choose a plain-text (.txt) file. If you submit both text and a file, the file is converted and the text in the box is ignored.
  3. Click Convert to Binary. The conversion runs on the server, so nothing happens while you type — press the button and the result appears below the form under the heading "Result".
  4. Read the binary output. Each character becomes one group of binary digits, and the groups are separated by single spaces. For example, Hi becomes 1001000 1101001.
  5. Copy or save the result. Use Copy to Clipboard to copy the binary, or Save as TXT to download it as a file called ascii-to-binary.txt.
  6. Check your work. Paste the binary into the Binary to ASCII tool to convert it back and confirm you get your original text.

Character tiles converting into binary digits

What ASCII Is and How Text Becomes Binary

ASCII — the American Standard Code for Information Interchange — assigns a number from 0 to 127 to each character: letters, digits, punctuation and control characters. The capital letter A is 65, the small letter a is 97, the digit 5 is 53, and a space is 32. Computers store these numbers in binary, so converting text to binary is a two-step idea: first each character is mapped to its ASCII number, then that number is written in binary.

This tool does exactly that, one character at a time, in order. The table below shows the ASCII code and the exact binary this tool returns for common characters. Notice the binary groups are not all the same length — the tool writes each number in binary without leading zeros, so H (72) is 7 digits and 5 (53) is 6 digits.

CharacterASCII codeBinary (as this tool returns it)Digits
H7210010007
i10511010017
e10111001017
l10811011007
o11111011117
A6510000017
5531101016
space321000006
!331000016
~12611111107

Worked example: "Hi" and "Hello"

Take the word Hi. H is ASCII 72, which is 1001000 in binary. The small letter i is ASCII 105, which is 1101001. Put the groups together with a space and you get the tool's exact output:

Hi → 1001000 1101001

The same rule gives the full output for Hello:

Hello → 1001000 1100101 1101100 1101100 1101111

That is five groups for five characters — H, e, l, l, o — in the same order as the word. You may have seen Hi written as 01001000 01101001 elsewhere. That is the same pair of numbers padded with a leading zero to make two 8-digit groups. This tool does not pad, so expect 1001000 1101001 here. If you need 8-digit groups, add a zero to the front of any group shorter than eight digits.

What the tool accepts, and its limits

FeatureWhat the tool does
Text inputPaste or type text into the input box (8 rows tall)
File uploadUpload a plain-text (.txt) file; the file is converted instead of any typed text
Typed-text limitMaximum 3,000 words — more than that shows the message "The string must not be greater than 3000 words."
File-text limitNo 3,000-word limit was found for uploaded files (a 4,000-word .txt file converted fine)
ConversionServer-side — click "Convert to Binary"; nothing converts while you type
Output formatOne binary group per character, groups separated by single spaces, leading zeros removed
Copy result"Copy to Clipboard" button copies the binary output
Save result"Save as TXT" button downloads the output as ascii-to-binary.txt
Account neededNo — free to use with no signup

Spaces, newlines and tabs are characters too, so they are converted like any other character: a space becomes 100000, a newline becomes 1010 and a tab becomes 1001. But a box containing only spaces counts as empty — the tool shows the message "The string field is required when file is not present." Enter at least one visible character, or upload a file.

Laptop showing text converting into binary

ASCII Binary Versus Plain Binary Numbers

ASCII to binary and plain number to binary look similar, but they answer different questions. ASCII to binary treats your input as text and converts every character through its ASCII code. Plain number to binary takes one number and writes that single value in binary.

AspectASCII to binaryPlain number to binary
Input isText, character by characterA single number
Each unit isA character's ASCII codeThe number itself
ResultOne binary group per characterOne binary value
ShowsHow text is storedA number in base two
Example5 as text → 110101 (ASCII 53)5 as a number → 101

The digit example is the one to remember. The character 5 has ASCII code 53, so as text it becomes 110101. The number 5 is 101 in binary. Same symbol on screen, completely different binary — because in one case you are encoding a character and in the other you are converting a value. For plain numbers, use the Decimal to Binary tool instead.

Who Converts ASCII to Binary

Students learning encoding. A student learning how computers store text converts a word to ASCII binary and sees each character become a binary code, which makes character encoding concrete instead of abstract.

Programmers and developers. A developer working with character encodings converts text to binary to check or verify how characters are represented at the binary level, for example when debugging text handling or data formats.

Computer science learners. Someone studying computing uses ASCII to binary as a basic exercise in how data and text are represented in binary — it is one of the first steps from "text on screen" to "numbers in memory".

People exploring how text works. Anyone curious about what text really is to a computer converts a word or sentence and sees the binary codes underneath the letters they read every day.

Character tiles feeding a machine that outputs binary cubes

Pro Tips for Working With ASCII Binary

Count the groups to count the characters. Because there is one group per character, the number of space-separated groups equals the number of characters converted — spaces and punctuation included.

Pad left with zeros for 8-bit bytes. If the program or assignment you are feeding expects 8 bits per character, add zeros to the front of each group until it is 8 digits long. 1001000 becomes 01001000 and 110101 becomes 00110101.

Remember digits are characters, not values. Typing 5 converts the character 5 (ASCII 53) to 110101, not the number 5 to 101. If you want the number, use Decimal to Binary.

Stay under 3,000 words, or upload a file. Typed text is limited to 3,000 words. For longer text, save it as a .txt file and upload it — the word limit does not apply to file uploads.

Stick to plain ASCII for one group per character. Accented letters and emoji are not ASCII characters, so the tool encodes them as several bytes instead of one group — é becomes two groups and an emoji becomes four. Use plain letters, digits and punctuation when you need exactly one group per character.

Convert back to check your work. Paste the binary output into the Binary to ASCII tool. If the original text comes back, the conversion is correct.

Common ASCII to Binary Mistakes to Avoid

Expecting 8-bit groups. This tool does not pad with leading zeros, so H is 1001000 (7 digits) and 5 is 110101 (6 digits). Splitting the output into fixed 8-digit chunks will garble it — split on the spaces instead.

Confusing text digits with numeric values. Digits typed as text convert through their ASCII codes, not as the numbers they represent. 5 as text is 110101; 5 as a number is 101.

Pasting accented text or emoji and expecting one group per character. ASCII covers only the basic letters, digits, punctuation and control characters. Accented characters and emoji fall outside it and come out as two or four groups each. Keep the input to plain ASCII text for a clean one-to-one result.

Submitting only spaces. A box with nothing but spaces is treated as empty, and the tool reports that the string field is required. Type at least one visible character, or upload a file.

Submitting text and a file together. When both are given, the file is converted and the typed text is ignored. If your result does not match what you typed, check whether a file was still attached.

Assuming it converts as you type. Nothing happens until you click Convert to Binary — the conversion runs on the server after you submit.

Related Tools You May Need Next

To turn binary back into text, use the Binary to ASCII tool. The Text to Binary tool and the Binary to Text tool cover the same round trip for general text. For single numbers rather than text, use the Decimal to Binary tool or the Binary to Decimal tool. The Text to ASCII tool shows the numeric ASCII codes without the binary step, the Text to Hex tool encodes text as hexadecimal instead of binary, and the Binary to Hex tool converts between the two bases.

Frequently Asked Questions

How do I convert ASCII to binary?

Type or paste your text into the input box, or upload a .txt file, then click "Convert to Binary". The tool returns one space-separated binary group per character.

What is the binary of "Hi"?

1001000 1101001. H is ASCII 72 (1001000) and i is ASCII 105 (1101001).

Why is each binary group a different length?

The tool writes each ASCII code in binary without leading zeros, so groups are 6 to 8 digits long. H is 7 digits (1001000) and the digit 5 is 6 digits (110101). Pad each group on the left with zeros if you need 8-digit groups.

What is ASCII?

ASCII, the American Standard Code for Information Interchange, assigns a number from 0 to 127 to each character — letters, digits, punctuation and control characters — so text can be stored and processed as numbers, and ultimately as binary.

What is the difference between ASCII binary and plain binary?

ASCII to binary treats the input as text and converts each character through its ASCII code, giving one binary group per character. Plain number to binary takes a single number and writes that value in binary — so the text 5 becomes 110101, while the number 5 becomes 101.

Why does the digit 5 become 110101 and not 101?

Because the tool treats it as the character "5", which has ASCII code 53, and 53 in binary is 110101. The number 5 in binary is 101 — a different conversion, done by the Decimal to Binary tool.

Can I convert accented characters or emoji?

The tool will accept them, but they are not ASCII characters, so each one comes out as several groups — é gives two groups and an emoji gives four. For exactly one group per character, use plain ASCII letters, digits and punctuation.

Is there a limit on how much text I can convert?

Typed text is limited to 3,000 words. For longer text, save it as a .txt file and upload it — the word limit does not apply to uploaded files.

Can I upload a file instead of typing?

Yes. Click "Upload File" and choose a plain-text (.txt) file. If you submit both text and a file, the file is converted and the typed text is ignored.

Is the ASCII to binary converter free?

Yes, it is free with no account and no signup. Paste text or upload a .txt file, click "Convert to Binary", and copy the result or save it as a .txt file.