Text to ASCII
Convert characters to ASCII code values
What Is the Text to ASCII Tool?
The Text to ASCII tool converts each character in your text into its corresponding ASCII numeric code, with your choice of delimiter separating the values in the output. Type or paste your text, select how you want the codes separated, click Convert, and the ASCII values appear in the output ready to copy. It is used for encoding text for data processing, working through computer science exercises, inspecting character values for debugging, and any task that requires knowing the numeric representation of each character in a string.
ASCII values come up more often than you might expect, even in modern work, because a lot of the underlying character handling in code still runs through the same 128-character table that has been in use for decades.
How to Use This Tool
- Paste or type your text into the input box above.
- Choose your preferred delimiter to separate the ASCII values in the output. A space between each value is the most readable, but comma or new line may suit your specific use case better.
- Click Convert and the tool outputs the ASCII code for every character in your input, separated by the delimiter you chose.
- Copy the result using the Copy button, or select and copy manually. Use Clear to reset the input.
When Would You Use This?
Converting a string to ASCII values for use in a coding exercise, a programming assignment, or any task where you need the numeric codes for specific characters and want to check them quickly without looking each one up in a reference table.
Encoding text as ASCII values for storage or transmission in a format that requires numeric representation, or preparing input for a system that processes character data as integers.
Debugging a character encoding issue by checking the exact numeric values of characters in a string, particularly for finding non-standard or unexpected characters that might be causing problems in processing or comparison operations.
Examples
Converting a simple word
Input : Hello
Delimiter: Space
Output : 72 101 108 108 111
Converting a phrase including a space
Input : Hi there
Delimiter: Space
Output : 72 105 32 116 104 101 114 101
(32 is the ASCII code for a space character)
Comma-separated output
Input : Test
Delimiter: Comma
Output : 84,101,115,116
New line separated output
Input : OK
Delimiter: New line
Output : 79
75(Each code on its own line)
Frequently Asked Questions
How do I convert text to ASCII?
Paste your text into the input box, choose a delimiter, and click Convert. Each character in your input is mapped to its ASCII code and the values appear in the output separated by your chosen delimiter.
What is the ASCII value of A?
The uppercase letter A has an ASCII value of 65. Lowercase a is 97. The difference between uppercase and lowercase letters is always 32 in the ASCII table.
What is the ASCII value of a space?
A space character has an ASCII value of 32. If you convert a sentence with spaces, you will see 32 appearing between the word character codes in the output.
How do I convert text to ASCII in Python?
Use the ord() function on each character: [ord(c) for c in "Hello"] returns [72, 101, 108, 108, 111]. For a single character: ord('A') returns 65. For a quick conversion without writing code, paste into this tool.
What is the ASCII table?
The ASCII table maps 128 characters to numbers from 0 to 127. It covers control characters (0-31), a space (32), printable characters including letters, digits, and punctuation (33-126), and the delete character (127). It is the foundation of most text encoding systems used in computing.
What delimiter should I use for the output?
Choose based on what you plan to do with the result. Space-separated values are easy to read and paste into most tools. Comma-separated works well for CSV use. New line puts each code on its own line, which is useful for processing the output line by line.
What happens to characters outside the standard ASCII range?
Standard ASCII only covers 128 characters (0-127). If your text contains characters outside that range, like accented letters or emoji, the tool may either skip them, output their extended or Unicode code point values, or produce unexpected results depending on the implementation.
How do I reverse the conversion (ASCII codes back to text)?
Use the ASCII to Text tool, which takes numeric values and converts them back into the characters they represent. That is the companion operation to this one.
Can I convert an entire paragraph to ASCII?
Yes. The tool processes the full contents of the input, including letters, spaces, punctuation, and line breaks, converting every character to its ASCII code.