Text to ASCII Converter
Convert text to ASCII codes instantly with BinaryCon. Enter standard ASCII text and view each character as decimal, hexadecimal, binary, or octal without installing software or creating an account.
What Is a Text to ASCII Converter?
A Text to ASCII Converter translates ordinary text characters into the numerical codes assigned to them by the ASCII character standard. ASCII stands for American Standard Code for Information Interchange and is one of the foundational character-encoding systems used in computing.
Standard ASCII defines 128 code values numbered from decimal 0 through 127. These codes represent English letters, digits, punctuation marks, spaces and control characters such as tab, carriage return and line feed.
For example, uppercase letter A is assigned decimal ASCII code 65. The same value can also be represented as hexadecimal 41, binary 01000001 or octal 101.
This BinaryCon Text to ASCII tool lets you see all four representations without leaving the page. Decimal is selected by default because decimal ASCII codes are the most common human-readable representation.
Input: Human-readable text
Enter letters, numbers, spaces, punctuation or standard ASCII control characters.
Output: ASCII values
View each character as decimal, hexadecimal, 8-bit binary or three-digit octal.
How to Use the Text to ASCII Converter
Type or paste standard ASCII text into the input box. You can enter a single character, word, sentence, numbers or punctuation.
Choose Decimal, Hex, Binary or Octal. Decimal is the default.
BinaryCon immediately converts each character into the selected ASCII representation.
Short inputs include a detailed mapping that shows each character, its decimal ASCII value and the selected representation.
Copy the output for programming, debugging, study, documentation, data analysis or further base conversion.
Text to ASCII Decimal Example
Suppose you enter the word Hello. The converter examines each character separately.
| Character | ASCII Decimal |
|---|---|
| H | 72 |
| e | 101 |
| l | 108 |
| l | 108 |
| o | 111 |
Text to ASCII Hex Example
e → 101
l → 108
l → 108
o → 111 Convert those values to hexadecimal: H → 48
e → 65
l → 6C
l → 6C
o → 6F Final hexadecimal result: 48 65 6C 6C 6F
Text to ASCII Binary Example
Every ASCII code can be displayed as an 8-bit binary byte.
e → 01100101
l → 01101100
l → 01101100
o → 01101111 Complete output: 01001000 01100101 01101100 01101100 01101111
Five ASCII characters therefore correspond to five bytes or 40 displayed binary bits.
Text to ASCII Octal Example
e → 145
l → 154
l → 154
o → 157 Complete output: 110 145 154 154 157
ASCII Conversion Table for Common Characters
| Character | Decimal | Hex | Binary | Octal |
|---|---|---|---|---|
| space | 32 | 20 | 00100000 |
040 |
| ! | 33 | 21 | 00100001 |
041 |
| 0 | 48 | 30 | 00110000 |
060 |
| 1 | 49 | 31 | 00110001 |
061 |
| 9 | 57 | 39 | 00111001 |
071 |
| A | 65 | 41 | 01000001 |
101 |
| Z | 90 | 5A | 01011010 |
132 |
| a | 97 | 61 | 01100001 |
141 |
| z | 122 | 7A | 01111010 |
172 |
| ? | 63 | 3F | 00111111 |
077 |
ASCII Character Ranges
ASCII values are organized into predictable ranges, which is useful when validating or processing text in software.
| Decimal Range | Characters | Description |
|---|---|---|
| 0–31 | Controls | Non-printing control characters |
| 32 | Space | Standard blank space |
| 33–47 | Symbols | Punctuation and symbols |
| 48–57 | 0–9 | Numeric digit characters |
| 65–90 | A–Z | Uppercase English letters |
| 97–122 | a–z | Lowercase English letters |
| 127 | DEL | Delete control character |
Uppercase Letters A–Z ASCII Codes
| Letter | Decimal | Letter | Decimal |
|---|---|---|---|
| A | 65 | N | 78 |
| B | 66 | O | 79 |
| C | 67 | P | 80 |
| D | 68 | Q | 81 |
| E | 69 | R | 82 |
| F | 70 | S | 83 |
| G | 71 | T | 84 |
| H | 72 | U | 85 |
| I | 73 | V | 86 |
| J | 74 | W | 87 |
| K | 75 | X | 88 |
| L | 76 | Y | 89 |
| M | 77 | Z | 90 |
Lowercase Letters a–z ASCII Codes
| Letter | Decimal | Letter | Decimal |
|---|---|---|---|
| a | 97 | n | 110 |
| b | 98 | o | 111 |
| c | 99 | p | 112 |
| d | 100 | q | 113 |
| e | 101 | r | 114 |
| f | 102 | s | 115 |
| g | 103 | t | 116 |
| h | 104 | u | 117 |
| i | 105 | v | 118 |
| j | 106 | w | 119 |
| k | 107 | x | 120 |
| l | 108 | y | 121 |
| m | 109 | z | 122 |
Text Digits Are Different From Numeric Values
A common source of confusion is the difference between a digit used as text and the same digit treated as a mathematical integer.
Hex: 35
Binary: 00110101
Octal: 065
In programming, a string containing “123” normally consists of three character codes until software parses that text into the mathematical integer 123.
How Are Spaces Converted to ASCII?
A space is a real ASCII character. It is not ignored when converting text.
Space → hex 20
Space → binary 00100000
Space → octal 040
Therefore text such as A B in decimal ASCII is:
space → 32
B → 66
Result: 65 32 66
ASCII Control Characters
ASCII contains several non-printing codes used historically and currently for data and text control.
| Name | Decimal | Hex | Common Meaning |
|---|---|---|---|
| NUL | 0 | 00 | Null |
| BEL | 7 | 07 | Bell |
| BS | 8 | 08 | Backspace |
| TAB | 9 | 09 | Horizontal tab |
| LF | 10 | 0A | Line feed |
| CR | 13 | 0D | Carriage return |
| ESC | 27 | 1B | Escape |
| DEL | 127 | 7F | Delete |
ASCII vs Unicode
ASCII is intentionally small. It contains only 128 codes and primarily covers English letters, numbers, punctuation and control characters. Modern software needs many more characters, which is why Unicode exists.
Unicode defines characters for writing systems around the world along with mathematical symbols, currency signs, technical symbols and emoji. UTF-8 is one of the most widely used encodings for Unicode.
The useful relationship is that UTF-8 preserves standard ASCII values exactly. Every ASCII character from code 0 through 127 uses the same single-byte value in UTF-8.
Text to ASCII vs ASCII to Decimal
These tasks are closely related, but BinaryCon gives them different purposes.
Text to ASCII
A general text encoding utility that lets you view ASCII in decimal, hexadecimal, binary or octal from one interface.
ASCII to Decimal
A focused converter specifically optimized for decimal ASCII codes, decimal tables and decimal-code explanations.
This separation gives users a quick multi-format tool here while keeping dedicated number-format pages available for more focused conversion work.
Where Text to ASCII Conversion Is Useful
Programming
Inspect character codes when parsing strings, validating input, comparing characters or debugging byte-level data.
Networking
Understand how readable protocol text becomes byte values transmitted over a network connection.
Embedded systems
Serial devices, controllers and hardware interfaces often exchange commands and responses as ASCII bytes.
Computer science learning
Compare one character across decimal, binary, hexadecimal and octal representations.
Data inspection
Determine the exact numeric byte values represented by human-readable text.
Encoding exercises
Verify homework, practice character encoding or create known test values for software projects.
Common Text to ASCII Conversion Mistakes
Text character “1” is ASCII decimal 49, not mathematical integer 1.
Space is ASCII decimal 32 and must appear in the output.
A is ASCII decimal 65, while a is decimal 97.
This tool keeps 8-bit output, so A is displayed as
01000001.
Emoji and most non-English writing systems are Unicode characters, not standard ASCII characters.
Related BinaryCon Tools
Use the dedicated ASCII converters when you want a deeper page for one specific output format, or reverse ASCII codes back into text.
Text to ASCII Converter FAQs
How do I convert text to ASCII?
Enter the text and read the numeric ASCII code assigned to each character. For example, uppercase A is decimal 65, B is 66 and C is 67. BinaryCon performs this automatically and can display the codes in decimal, hexadecimal, binary or octal.
What is Hello in ASCII?
In decimal ASCII, Hello is
72 101 108 108 111.
In hexadecimal it is
48 65 6C 6C 6F.
What is A in ASCII?
Uppercase A is decimal ASCII 65, hexadecimal 41, binary 01000001, and octal 101.
What is lowercase a in ASCII?
Lowercase a has decimal ASCII value 97, hex value 61, binary value 01100001, and octal value 141.
What is ABC in ASCII decimal?
A is 65, B is 66 and C is 67, so ABC → 65 66 67.
What is ABC in ASCII hexadecimal?
The hexadecimal ASCII representation of ABC is 41 42 43.
What is a space in ASCII?
A normal space is decimal ASCII 32, hexadecimal 20, binary 00100000, and octal 040.
What is the ASCII code for number 0?
Text character 0 has decimal ASCII value 48. Its hexadecimal representation is 30 and its 8-bit binary form is 00110000.
What is the ASCII code for number 9?
Text character 9 has decimal ASCII value 57, hexadecimal value 39 and binary value 00111001.
Why is character 5 ASCII 53?
ASCII digit characters occupy consecutive decimal codes 48 through 57. Character 0 starts at 48, so character 5 has code 53. This is different from the mathematical number five.
What ASCII values represent uppercase letters?
Uppercase English letters A through Z occupy decimal ASCII values 65 through 90.
What ASCII values represent lowercase letters?
Lowercase a through z occupy decimal ASCII values 97 through 122.
Does the converter include spaces and punctuation?
Yes. Spaces and punctuation are standard ASCII characters and each has its own code. They remain part of the output instead of being removed.
Can this tool convert multiple lines of text?
Yes. Standard ASCII tabs, carriage returns and line feeds are supported. These controls also receive their corresponding ASCII values.
Is ASCII 7-bit or 8-bit?
Standard ASCII contains values 0 through 127 and therefore needs only seven significant bits. However, ASCII data is commonly stored in 8-bit bytes, so BinaryCon displays binary results using eight bits.
Is ASCII the same as Unicode?
No. ASCII defines only 128 character codes. Unicode supports a vastly larger character set. UTF-8 preserves all standard ASCII byte values, but non-ASCII Unicode characters may require multiple bytes.
Can this converter convert emoji to ASCII?
No. Emoji are Unicode characters and do not have standard ASCII codes. BinaryCon intentionally reports them as non-ASCII rather than producing a misleading value.
Can I reverse ASCII codes back into text?
Yes. Use BinaryCon’s ASCII to Text converter to convert numeric ASCII values back into readable characters.
Does BinaryCon store the text I enter?
The conversion logic on this tool runs directly in the browser using JavaScript. The calculator does not need to send the entered text to a remote conversion API to calculate the result.
Convert Text to ASCII Instantly
Use BinaryCon to convert standard text into decimal, hexadecimal, binary or octal ASCII codes, inspect character mappings and switch representations instantly without registration.