Convert text to ASCII character codes in decimal, hex, binary or octal, with strict validation because ASCII defines only the 128 characters numbered 0 to 127.
Show calculation steps
Processed privately in your browser — nothing you paste is uploaded, logged or stored.
How to use the Text to ASCII
- Paste ASCII text into the input panel.
- Choose the number base for the output – decimal, hex, binary or octal.
- Decide how non-ASCII characters should be handled: reported as an error, skipped, or allowed through as code points.
- Click "Convert to ASCII codes".
Frequently asked questions
Why does an accented letter cause an error by default?
Because ASCII genuinely defines only 128 characters, numbered 0 to 127. An accented letter is not an ASCII character at all, so silently emitting a number for it would misrepresent what ASCII is. The option exists if you want the code point anyway.
What is the difference between this and the Text to Decimal tool?
This tool is strict about ASCII and offers four output bases; Text to Decimal handles the full Unicode range by default and is the right choice for emoji or non-Latin scripts. For plain ASCII input the numbers are identical.
What are the codes below 32?
Control characters – carriage return, line feed, tab, escape and similar – that instruct devices rather than printing a glyph. The ASCII to Text converter can display them by name so they are visible.