Binary To Ascii Converter
Enter the binary value to convert to ascii text or ASCII Text to Binary.
Binary:
Binary code represents text characters as sequences of 8-bit bytes (e.g., 01001000 = "H").
ASCII Text:
ASCII (American Standard Code for Information Interchange) is a character encoding standard with 128 characters including letters, digits, and symbols.
How to Convert Binary to ASCII Text — Formula:
Each 8-bit binary group → decimal value → ASCII character. Character = String.fromCharCode(parseInt(binary, 2)).
Example: 01001000 01101001 → 72 105 → "Hi".
Technical Details:
ASCII uses 7 bits (0-127) for standard characters. Extended ASCII uses 8 bits (0-255). Printable characters: 32-126. Control characters: 0-31. Common: 65=A, 97=a, 48=0, 32=space, 10=newline.
Binary To Ascii Converter:
Convert binary code to readable ASCII text. Enter space-separated 8-bit binary values to decode the message.
ASCII Encoding: Text → Numbers → Binary
How to Convert Binary to ASCII Text
- Get 8-bit binary byte
- Convert binary to decimal
- Get character from ASCII table using decimal code
- Continue with next byte
Example
Convert "01001000 01101001" to text:
01001000₂ = 72₁₀ => "H"
01101001₂ = 105₁₀ => "i"
Result: "Hi"
ASCII Text to Hex, Binary Conversion Table
| ASCII Character | Hexadecimal | Binary |
|---|---|---|
| NUL | 00 | 00000000 |
| SOH | 01 | 00000001 |
| STX | 02 | 00000010 |
| ETX | 03 | 00000011 |
| EOT | 04 | 00000100 |
| ENQ | 05 | 00000101 |
| ACK | 06 | 00000110 |
| BEL | 07 | 00000111 |
| BS | 08 | 00001000 |
| HT | 09 | 00001001 |
| LF | 0A | 00001010 |
| VT | 0B | 00001011 |
| FF | 0C | 00001100 |
| CR | 0D | 00001101 |
| SO | 0E | 00001110 |
| SI | 0F | 00001111 |
| DLE | 10 | 00010000 |
| DC1 | 11 | 00010001 |
| DC2 | 12 | 00010010 |
| DC3 | 13 | 00010011 |
| DC4 | 14 | 00010100 |
| NAK | 15 | 00010101 |
| SYN | 16 | 00010110 |
| ETB | 17 | 00010111 |
| CAN | 18 | 00011000 |
| EM | 19 | 00011001 |
| SUB | 1A | 00011010 |
| ESC | 1B | 00011011 |
| FS | 1C | 00011100 |
| GS | 1D | 00011101 |
| RS | 1E | 00011110 |
| US | 1F | 00011111 |
| Space | 20 | 00100000 |
| ! | 21 | 00100001 |
| " | 22 | 00100010 |
| # | 23 | 00100011 |
| $ | 24 | 00100100 |
| % | 25 | 00100101 |
| & | 26 | 00100110 |
| ' | 27 | 00100111 |
| ( | 28 | 00101000 |
| ) | 29 | 00101001 |
| * | 2A | 00101010 |
| + | 2B | 00101011 |
| , | 2C | 00101100 |
| - | 2D | 00101101 |
| . | 2E | 00101110 |
| / | 2F | 00101111 |
| 0 | 30 | 00110000 |
| 1 | 31 | 00110001 |
| 2 | 32 | 00110010 |
| 3 | 33 | 00110011 |
| 4 | 34 | 00110100 |
| 5 | 35 | 00110101 |
| 6 | 36 | 00110110 |
| 7 | 37 | 00110111 |
| 8 | 38 | 00111000 |
| 9 | 39 | 00111001 |
| : | 3A | 00111010 |
| ; | 3B | 00111011 |
| < | 3C | 00111100 |
| = | 3D | 00111101 |
| > | 3E | 00111110 |
| ? | 3F | 00111111 |
| @ | 40 | 01000000 |
| A | 41 | 01000001 |
| B | 42 | 01000010 |
| C | 43 | 01000011 |
| D | 44 | 01000100 |
| E | 45 | 01000101 |
| F | 46 | 01000110 |
| G | 47 | 01000111 |
| H | 48 | 01001000 |
| I | 49 | 01001001 |
| J | 4A | 01001010 |
| K | 4B | 01001011 |
| L | 4C | 01001100 |
| M | 4D | 01001101 |
| N | 4E | 01001110 |
| O | 4F | 01001111 |
| P | 50 | 01010000 |
| Q | 51 | 01010001 |
| R | 52 | 01010010 |
| S | 53 | 01010011 |
| T | 54 | 01010100 |
| U | 55 | 01010101 |
| V | 56 | 01010110 |
| W | 57 | 01010111 |
| X | 58 | 01011000 |
| Y | 59 | 01011001 |
| Z | 5A | 01011010 |
| [ | 5B | 01011011 |
| \ | 5C | 01011100 |
| ] | 5D | 01011101 |
| ^ | 5E | 01011110 |
| _ | 5F | 01011111 |
| ` | 60 | 01100000 |
| a | 61 | 01100001 |
| b | 62 | 01100010 |
| c | 63 | 01100011 |
| d | 64 | 01100100 |
| e | 65 | 01100101 |
| f | 66 | 01100110 |
| g | 67 | 01100111 |
| h | 68 | 01101000 |
| i | 69 | 01101001 |
| j | 6A | 01101010 |
| k | 6B | 01101011 |
| l | 6C | 01101100 |
| m | 6D | 01101101 |
| n | 6E | 01101110 |
| o | 6F | 01101111 |
| p | 70 | 01110000 |
| q | 71 | 01110001 |
| r | 72 | 01110010 |
| s | 73 | 01110011 |
| t | 74 | 01110100 |
| u | 75 | 01110101 |
| v | 76 | 01110110 |
| w | 77 | 01110111 |
| x | 78 | 01111000 |
| y | 79 | 01111001 |
| z | 7A | 01111010 |
| { | 7B | 01111011 |
| | | 7C | 01111100 |
| } | 7D | 01111101 |
| ~ | 7E | 01111110 |
| DEL | 7F | 01111111 |
Frequently Asked Questions
How do I convert Binary to ASCII Text?
Each 8-bit binary group → decimal value → ASCII character. Character = String.fromCharCode(parseInt(binary, 2)).
What is the Binary number system?
Binary code represents text characters as sequences of 8-bit bytes (e.g., 01001000 = "H").
What is the ASCII Text number system?
ASCII (American Standard Code for Information Interchange) is a character encoding standard with 128 characters including letters, digits, and symbols.
Where is Binary to ASCII Text conversion used?
ASCII uses 7 bits (0-127) for standard characters. Extended ASCII uses 8 bits (0-255). Printable characters: 32-126. Control characters: 0-31. Common: 65=A, 97=a, 48=0, 32=space, 10=newline.
Can I convert large binary numbers?
Yes. This converter handles numbers of any practical size. For very large numbers, the conversion is performed using arbitrary-precision arithmetic to ensure accuracy.
How to Convert Binary to ASCII (Binary Numbers to Characters)
ASCII (American Standard Code for Information Interchange) maps 128 characters to 7-bit binary codes. Converting binary to ASCII means splitting a binary stream into 8-bit (or 7-bit) groups and looking up each value in the ASCII table. This is fundamental to understanding how text files, network protocols, and serial communication work at the hardware level.
- Split the binary string into groups of 8 bits (one byte per character).
- Convert each 8-bit group to its decimal value (0-127 for standard ASCII).
- Look up the decimal value in the ASCII table to find the character.
- Concatenate all characters to form the text string.
- Example: 01001000 01101001 → 72, 105 → "Hi".
Binary to ASCII: Essential Character Codes
The most commonly used ASCII characters and their 8-bit binary representations:
| Input | Output |
|---|---|
| 00001010 | LF (\n) |
| 00001101 | CR (\r) |
| 00100000 | Space |
| 00110000 | 0 |
| 00110001 | 1 |
| 01000001 | A |
| 01000010 | B |
| 01011010 | Z |
| 01100001 | a |
| 01111010 | z |
| 00101110 | . |
| 01000000 | @ |
Solved Examples: Binary to ASCII
Question 1: Decode the binary message: 01001000 01100101 01101100 01101100 01101111
Solution:
01001000 = 72 = H
01100101 = 101 = e
01101100 = 108 = l
01101100 = 108 = l
01101111 = 111 = o
Answer: The binary sequence decodes to "Hello".
Question 2: A serial port receives: 01010011 01001111 01010011. What is the message?
Solution:
01010011 = 83 = S
01001111 = 79 = O
01010011 = 83 = S
Answer: The binary data decodes to "SOS" — a distress signal transmitted as ASCII.
Question 3: Convert 00110001 00110010 00110111 to ASCII (text representation of a number).
Solution:
00110001 = 49 = '1'
00110010 = 50 = '2'
00110111 = 55 = '7'
Note: these are the characters 1, 2, 7 — not the number 127.
Answer: The binary represents the ASCII string "127" — digits are stored as characters (48 + digit value).
Question 4: Decode: 01000011 00101011 00101011
Solution:
01000011 = 67 = C
00101011 = 43 = +
00101011 = 43 = +
Answer: The binary decodes to "C++" — the programming language name in ASCII.
Practice: Binary to ASCII
Try solving these on your own to test your understanding:
- Decode 01010100 01100101 01110011 01110100. (Answer: "Test")
- What character is 01000000? (Answer: @ — the "at" sign, ASCII 64)
- Decode 00110100 00110010. (Answer: "42" — the string, not the number)
- What is 01111110 in ASCII? (Answer: ~ tilde, ASCII 126)
- Decode 01001111 01001011. (Answer: "OK")
- What character is 00100001? (Answer: ! — exclamation mark, ASCII 33)
ASCII Control Characters (0-31)
The first 32 ASCII codes (00000000-00011111) are non-printable control characters: 0=NULL (string terminator in C), 7=BEL (makes terminal beep), 8=BS (backspace), 9=TAB (horizontal tab), 10=LF (line feed), 13=CR (carriage return), 27=ESC (escape sequences). These were designed for teletypes but still control modern terminals. When viewing a binary file, control characters appear as dots or special symbols in hex editors.
ASCII vs. Unicode: Where Binary Gets Complex
Standard ASCII uses 7 bits (128 characters). Extended ASCII uses 8 bits (256 characters) with various code pages. Unicode (UTF-8) uses 1-4 bytes per character, where ASCII characters (0-127) use a single byte unchanged but characters above 127 use multi-byte sequences starting with specific bit patterns: 110xxxxx for 2-byte, 1110xxxx for 3-byte, 11110xxx for 4-byte. The first bit of each byte tells the decoder whether it is ASCII or a multi-byte sequence.
Key Takeaways
- Split binary into 8-bit groups, convert each to a decimal value, then look up ASCII.
- Key ranges: 48-57 (digits), 65-90 (uppercase), 97-122 (lowercase), 32 (space).
- Uppercase to lowercase: change bit 5 (add 32 to the decimal value).
- Control characters (0-31) are non-printable but functionally important.
- Standard ASCII is 7-bit (128 chars); UTF-8 extends it with multi-byte sequences.
- Text in computers is always just binary — ASCII defines the agreed-upon mapping.