⚡ Free Text Encoding Tool

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.

✓ Decimal ASCII ✓ Hex output ✓ Binary output ✓ Octal output ✓ Free unlimited use
TXT→ASCII
Text → ASCII
Ready
Standard ASCII 0–127
Type standard ASCII text. Spaces, punctuation, tabs and line breaks are supported.
Output Format
Try:
✓ Decimal ASCII Codes
Decimal ASCII character codes
Characters 0
ASCII Values 0
Current Format Decimal
Character mapping:

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

Enter your text

Type or paste standard ASCII text into the input box. You can enter a single character, word, sentence, numbers or punctuation.

Select an ASCII output format

Choose Decimal, Hex, Binary or Octal. Decimal is the default.

View the result

BinaryCon immediately converts each character into the selected ASCII representation.

Check the character mapping

Short inputs include a detailed mapping that shows each character, its decimal ASCII value and the selected representation.

Copy the ASCII codes

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: Hello ASCII decimal output: 72 101 108 108 111

Text to ASCII Hex Example

ASCII decimal values: H → 72
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.

H → 01001000
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

H → 110
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
A65N78
B66O79
C67P80
D68Q81
E69R82
F70S83
G71T84
H72U85
I73V86
J74W87
K75X88
L76Y89
M77Z90

Lowercase Letters a–z ASCII Codes

Letter Decimal Letter Decimal
a97n110
b98o111
c99p112
d100q113
e101r114
f102s115
g103t116
h104u117
i105v118
j106w119
k107x120
l108y121
m109z122

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.

Mathematical decimal value: 5 Text character: “5” → ASCII decimal 53 Other representations: Decimal: 53
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 → decimal 32
Space → hex 20
Space → binary 00100000
Space → octal 040

Therefore text such as A B in decimal ASCII is:

A → 65
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.

Important: this page deliberately works as a strict Text to ASCII converter. Characters outside code range 0–127 are rejected rather than silently producing misleading ASCII values.

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

Confusing character values with mathematical values

Text character “1” is ASCII decimal 49, not mathematical integer 1.

Ignoring spaces

Space is ASCII decimal 32 and must appear in the output.

Assuming uppercase and lowercase are identical

A is ASCII decimal 65, while a is decimal 97.

Removing binary leading zeros

This tool keeps 8-bit output, so A is displayed as 01000001.

Treating emoji as ASCII

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.

Scroll to Top