Home Conversion Number ASCII Text to Binary

ASCII Text to Binary Converter

To use ASCII text to binary converter, type an ASCII value e.g. "parents" and click on the Convert button and you will get the binary converted value "01110000 01100001 01110010 01100101 01101110 01110100 01110011". Space is used as output delimiter among the different 8-bit binary values.

What is ASCII Text

Binary Numeral System

The binary number system is a method of expressing numbers using just two symbols: 0 and 1. Its base, also called the radix, is 2. Modern digital computers operate entirely on binary, with all information stored and processed in this format. Each individual digit in a binary number is known as a bit and every bit represents a power of 2. 1 byte is equal to 8 bits.

Example:

Consider the binary number 1010:

(1 × 23) + (0 × 22) + (1 × 21) + (0 × 20) = (1 × 8) + (0 × 4) + (1 × 2) + (0 × 1) = 8 + 2 = 10 in decimal number system.

How to Convert ASCII Text to Binary

How to Use this Converter

ASCII Text to Binary Examples:

Example 1: Conversion of the text Sun1% ? to binary.

Step-1: In the string "Sun1% ?" we have one upper case letter "S", two lower case letters "un", one number "1" and two special characters "%?" and one space. By considering the ASCII table below, following decimal values are assigned to these characters.
  • S → 83
  • u → 117
  • n → 110
  • 1 → 49
  • % → 37
  • space → 32
  • ? → 63
Step-2: Converting these decimal values to the corresponding binary values.
Letter Decimal Value Binary Value
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
S 83 0 1 0 1 0 0 1 1
u 117 0 1 1 1 0 1 0 1
n 110 0 1 1 0 1 1 1 0
1 49 0 0 1 1 0 0 0 1
% 37 0 0 1 0 0 1 0 1
space 32 0 0 1 0 0 0 0 0
? 63 0 0 1 1 1 1 1 1
Step-3: Finally the text "Sun1% ?" converted to the 8-bit binary values: "01010011 01110101 01101110 00110001 00100101 00100000 00111111"

Example 2: Convert Computer 1! to binary.

Step-1: Check the ASCII table and find the decimal equivalents of these text characters.
  • C → 67
  • o → 111
  • m → 109
  • p → 112
  • u → 117
  • t → 116
  • e → 101
  • r → 114
  • space → 32
  • 1 → 49
  • ! → 33
Step-2: Now convert decimal values to the binary.
Letter Decimal Value Binary Value
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
C 67 0 1 0 0 0 0 1 1
o 111 0 1 1 0 1 1 1 1
m 109 0 1 1 0 1 1 0 1
p 112 0 1 1 1 0 0 0 0
u 117 0 1 1 1 0 1 0 1
t 116 0 1 1 1 0 1 0 0
e 101 0 1 1 0 0 1 0 1
r 114 0 1 1 1 0 0 1 0
space 32 0 0 1 0 0 0 0 0
1 49 0 0 1 1 0 0 0 1
! 33 0 0 1 0 0 0 0 1
Step-3: The text "Computer 1!" converted to the 8-bit binary values: "01000011 01101111 01101101 01110000 01110101 01110100 01100101 01110010 00100000 00110001 00100001".

Frequently Ask Questions: ASCII Text To Binary Conversion

Q1: Are 8 bits required to convert ASCII text to binary?

ASCII uses 7 bits, but it’s standard practice to use a full byte (8 bits) to align with typical computer memory units.

Q2: Can all ASCII characters be converted to binary codes?

Yes, every ASCII character from 0 to 127 has a corresponding 8-bit binary code.

Q3: How to convert the 'B' to binary?

Using ASCII table: 'B' = (66)10 (decimal) = 64 + 2 = 26 + 21 = (01000010)2.

Q4: Convert ASCII char '0' to binary?

Using ASCII table: '0' = (48)10 (decimal) = 32 + 16 = 25 + 24 = (00110000)2.

Q5: How does ASCII binary differ from the raw binary?

ASCII binary specifically represents text characters, while raw binary may represent any type of data e.g. images, audio, etc.

by Wasim Khan and it was last modified on

Related Conversions

Please find the related numeric conversions.