ASCII to Binary Converter

An ASCII to binary converter writes each ASCII character as the 8-bit binary form of its character code.

Example: A = 01000001

This tool uses UTF-8 encoding. Letters and digits in English use one byte each; other characters can use two, three, or four bytes.

Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).

TextBinary
01000001

Convert the letter A to binary

  1. Find the ASCII code. Uppercase A is decimal 65. In the ASCII table that row is also hex 41.
  2. Expand 65 in powers of 2. 65 = 64 + 1, so the bits for 64 and 1 are set: 01000001.
  3. Keep one byte per character. ASCII codes 0–127 always fit in one byte when stored as UTF-8, with a leading 0 in the 8-bit form.

ASCII characters to binary

CharASCIIBinary
A6501000001
a9701100001
04800110000
space3200100000
!3300100001

Frequently Asked Questions

What is the binary for A?

A is ASCII 65, which is 01000001. Lowercase a is 97, which is 01100001. Case always changes the code.

Do I use 7 bits or 8 bits?

ASCII codes fit in 7 bits. Computers store them in 8-bit bytes, so the usual written form adds a leading 0, as in 01000001 rather than 1000001.

Can this page encode emoji?

Emoji are not ASCII. The converter still accepts them and emits the UTF-8 bytes, which are more than one byte. Use the ASCII table only for codes 0–127.

What is the binary for the digit 0?

The character 0 is ASCII 48, binary 00110000. That is different from the number 0, whose binary value is 0.

Related tools & guides