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.
ASCII Text to Binary Conversion:
What is ASCII Text
ASCII (American Standard Code for Information Interchange) is a fundamental character encoding system. It uses 128 unique symbols, including the English alphabet (both upper and lowercase), numbers 0–9, and common punctuation like =, %, ", and ) etc.
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
In computing, everything breaks down to ones and zeros and nowadays we convert readable text into binary code, the language which computers can understand. It also find great significance in the world of embedded systems where we use different programming languages like C, Python, Java etc. where such conversions are commonly required for data processing and communication. You can use our this tool which can easily convert the ASCII text to the corresponding binary codes and for the reverse conversion you can also have a look at Binary to Text Converter. Follow the below steps to fully understand this conversion:
-
Step-1: Identify the ASCII character’s decimal code using the ASCII table.
-
Step-2: Convert these decimal values of each text letter into the binary equivalents.
-
Step-3: Represent the binary in a byte format (8 bits), padding with leading zeros on the left side if necessary.
How to Use this Converter
Past text inside the left ASCII value box.
Press "Convert" button.
View the binary output on the right box.
ASCII Text to Binary Examples:
Example 1: Conversion of the text Sun1% ? to binary.
- S → 83
- u → 117
- n → 110
- 1 → 49
- % → 37
- space → 32
- ? → 63
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 |
Example 2: Convert Computer 1! to binary.
- C → 67
- o → 111
- m → 109
- p → 112
- u → 117
- t → 116
- e → 101
- r → 114
- space → 32
- 1 → 49
- ! → 33
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 |
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.
Related Conversions
Please find the related numeric conversions.