Text to ASCII Online
Turn standard ASCII letters, punctuation and control characters into numeric codes for programming exercises, protocol examples and text inspection. Choose decimal or hexadecimal output, then copy the space-separated codes. Characters outside standard ASCII produce a clear error instead of being silently removed.
- Export decimal or two-digit HEX codes
- Represent spaces, tabs and line breaks
- Reject characters outside standard ASCII
Convert Hello into ASCII numbers
Enter Hello and choose decimal. The result is 72 101 108 108 111, one code for each character. In hexadecimal the same text becomes 48 65 6C 6C 6F. Add an exclamation mark and its value, decimal 33 or hexadecimal 21, appears at the end. Character case matters: uppercase H and lowercase h have different codes.
Inspect invisible characters
Spaces and line breaks are part of the input. A normal space becomes decimal 32, a tab becomes 9 and a line feed becomes 10. This can help explain why two strings that look similar behave differently in a parser. Browser text fields can normalize pasted line endings, so this tool describes the text in the field rather than the original file bytes.
Choose ASCII or UTF-8 deliberately
Standard ASCII contains values from 0 to 127. Hindi text, emoji, curly quotes and accented letters are outside that range. The converter rejects them instead of stripping accents or guessing an extended code page. Choose Text to HEX or Text to Binary when you need the UTF-8 byte representation of multilingual text, or inspect code points with the Unicode tool.
Copy and reverse the conversion
Output codes use spaces as separators and no 0x prefix. Keep each hexadecimal byte together when copying it to another tool. To check the result, paste the codes into ASCII to Text and select the same number format. Inputs can contain up to 100,000 characters. The numeric representation is reversible for supported text and provides no encryption or compression.
Technical references: Standard ASCII character table