Text To ASCII
Text To ASCII shows the decimal ASCII code for every character in a string. It is a quick reference for developers, students and anyone checking how text is encoded.
Share this page:
Text To ASCII shows the decimal ASCII code for every character in a string. It is a quick reference for developers, students and anyone checking how text is encoded.
How to use Text To ASCII
- Paste the text into the input area.
- Click Convert to ASCII.
- Copy the decimal codes, or upload a text file to process a longer block.
What you can use Text To ASCII for
- Find the numeric code for a punctuation mark or whitespace character.
- Build a lookup exercise for an introductory programming class.
- Debug a protocol or file format that stores text as decimal codes.
Things to keep in mind
Control characters such as tab and newline are easy to miss. Include them deliberately when they are part of the message.
A closer look
Decimal ASCII codes are easy to confuse with Unicode code points. For basic Latin text they match, but above 127 the two systems diverge and a decoder may interpret the value differently.
Common mistakes to avoid
- Assuming every decimal code is a printable character.
- Ignoring the difference between a line feed and a carriage return.
Text To ASCII FAQs
What code does a newline have?
A line feed is 10 and a carriage return is 13. Windows text often contains both, while Unix-style files use only the line feed.
Are these values ASCII or Unicode?
For basic Latin characters the decimal values match ASCII. Characters outside that range use Unicode code points and may not be covered by a simple ASCII conversion.
Can I convert the codes back to text?
Yes. Use the ASCII To Binary or a decimal-to-text decoder, depending on the format you have.
Related Tools
More free tools you may like