ASCII to Binary Converter – Free

Type or paste plain text and this ASCII to binary converter writes each character as an 8-bit byte. The conversion runs in your browser.

How to use the ASCII to Binary tool

  1. Type or paste your text into the ASCII text box, or select Example to load ABC.
  2. Select Convert to encode the text.
  3. Read the bytes in the Result box. Each character becomes eight binary digits, and bytes are separated by single spaces.
  4. Select Copy to copy the binary string, or Clear to empty the form.

How ASCII to binary conversion works

ASCII assigns a number from 0 to 127 to each of 128 characters: 33 control codes, the space, and 94 printable letters, digits and punctuation marks. The standard is ANSI X3.4. RFC 20 reproduces it for internet use, and ISO/IEC 646 is its international counterpart. Converting text to binary means looking up each character's number and writing that number in base 2.

ASCII is a 7-bit code, so every value fits in seven binary digits. Computers store text in 8-bit bytes, so this tool pads each value on the left with a zero. That is why every byte in the output begins with 0. The letter A is 65, which is 1000001 in seven bits and 01000001 as a byte.

Worked example: Hi there

The phrase Hi there has eight characters, counting the space, so the result has eight bytes. H is 72 (01001000), i is 105 (01101001) and the space is 32 (00100000). The space is easy to miss in the output because it looks like any other byte.

Hi there
01001000 01101001 00100000 01110100 01101000 01100101 01110010 01100101

Patterns you can read in the bits

ASCII was laid out so that related characters share bit patterns. Once you know them, you can read a byte without a table.

  • Uppercase letters start with 010. A is 01000001 and Z is 01011010.
  • Lowercase letters start with 011. Each differs from its uppercase form only in the bit worth 32, so a is 01100001.
  • Digits start with 0011, and the last four bits are the digit's value. The character 9 is 00111001.
  • The space is 00100000, and control codes such as tab and line feed start with 000.

Input rules and limits

The tool accepts any of the 128 ASCII characters, including spaces, tabs and line breaks. Nothing is trimmed, so a leading space or a trailing line break produces its own byte: a space becomes 00100000 and a line feed 00001010. If the text contains an accented letter, an emoji, a curly quote or any other character above code 127, the conversion stops with the message Enter ASCII characters only.

Curly quotes and long dashes pasted from word processors are the usual cause of that message. Replace them with straight quotes and hyphens, or use the Text to Binary tool, which encodes any Unicode text as UTF-8 bytes. The code sets no length limit.

Where binary ASCII shows up

Developers meet binary ASCII in computer science coursework, serial protocol traces, logic analyzer captures and puzzle challenges. UART frames, for example, send each character least significant bit first, so a capture of the letter A shows the bits of 01000001 in reverse order on the wire.

Frequently asked questions

What is the binary code for the letter A?

Uppercase A is ASCII code 65, which is 01000001 as an 8-bit byte. Lowercase a is code 97, or 01100001. The two differ in a single bit, the one with place value 32.

Why does every byte in the result start with 0?

ASCII only defines codes 0 through 127, which need seven bits. The tool writes each code as a full 8-bit byte, so the leftmost bit is always the padding zero. A byte that starts with 1 is not ASCII.

Can I convert accented letters or emoji?

Not with this tool. Characters such as é or € are outside ASCII, and the converter reports Enter ASCII characters only. Use the Text to Binary tool for those. It encodes text as UTF-8, where such characters take two to four bytes.

How do I turn the binary back into text?

Copy the result into the Binary to ASCII tool. It reads groups of eight bits, checks that each byte is in the ASCII range and prints the characters.

Is my text sent to a server?

No. The page converts the text with JavaScript on your device, so the characters you type stay in the browser tab.

Related tools