See the number behind every character
Every letter, digit and symbol on an English keyboard has an ASCII code: A is 65, a is 97, the space is 32 and a line break is 10. Type or paste your text and the tool lists all of them in one go, ready to copy into code, a test or a homework sheet. Looking each one up in a chart is slow, and one wrong row in the table spoils the whole answer, so letting the tool do it is safer.
Decimal, hex or octal, with a table to check
Pick the number system, the separator between codes, and whether to pad every number to the same width or add a 0x prefix. A table underneath shows each character with its decimal, hex and octal value, and gives the standard name for control characters such as TAB, LF and ESC.
How to use Text to ASCII Converter
- Type or paste your text into the box.
- Choose the number system (decimal, hex or octal) and the separator between the codes.
- Decide what to do with characters outside ASCII: stop and show the problem, skip them, or replace them with a question mark.
- Solve the security check and press Convert to ASCII.
- Copy or download the codes and check them against the character table.
About Text to ASCII Converter
ASCII is a 7-bit table of 128 characters: codes 0 to 31 and 127 are control characters (tab is 9, line feed is 10, carriage return is 13), 32 is the space, 48 to 57 are the digits, 65 to 90 the capital letters and 97 to 122 the small letters. Decimal shows the code as most tables do, hex is the form used in programming and colour codes, and octal is the form used in older Unix tools. Pad numbers makes every code the same width (three digits for decimal and octal, two for hex), which helps when codes are written with no separator. Characters above 127 do not exist in ASCII. Letters from other languages are covered by Unicode, so for those use the Text to Unicode Converter.
Purpose of Text to ASCII Converter Tool
Use it for programming and computer science exercises, to check what code a key produces, to build lookup values for scripts and protocols, to find hidden control characters in copied text, or to prepare text for tools that accept ASCII codes only.
Limitations of Text to ASCII Converter
- ASCII has only 128 characters. Bengali, Arabic, Chinese, emoji and accented letters are outside it. Use the Text to Unicode Converter for those.
- Replace with a question mark loses the original character. Use it only when a placeholder is acceptable.
- The table shows the first 200 characters. The copied or downloaded codes always include everything.
- Text over 1 million characters is refused to keep the page fast.
Privacy and data
Text to ASCII Converter runs entirely in your browser. What you type or select is processed on your own device and is never sent to or stored on our server. See our Privacy Policy for details.
Frequently asked questions
How do I convert text to ASCII codes?
Paste the text, choose decimal, hex or octal, solve the security check and press Convert to ASCII. Each character becomes its code, in the order you typed it.
What happens to letters that are not ASCII?
By default the tool stops and shows the first character it cannot convert. You can also skip such characters or replace them with a question mark. For full language support use the Text to Unicode Converter.
Is the text to ASCII converter free and safe to use?
Yes. The text to ASCII converter is free to use and runs in your browser, so your text is not uploaded, stored or logged.
How do I convert text to hex or octal ASCII?
Choose hex or octal before you convert. The tool shows each character's code in that number system, with the separator you set.
What is the ASCII value of a space or a new line?
A space is 32 in decimal and a new line is 10. In hex they are 20 and 0A.
Rate Text to ASCII Converter
No ratings yet. Be the first to rate this tool.
Report a bug or give feedback
Popular tools
Morse Code to Text
Decode Morse code made of dots and dashes into readable text, with flexible separators and error marking.
Text ToolsWebpage URL to Text
Turn a web page address, pasted page source or an HTML file into clean readable text without ads and menus.
Text ToolsASCII to Text Converter
Decode decimal, hex or octal ASCII codes into text, with auto-detection, a code table, control-character names and clear errors for bad codes.
Text ToolsBinary to Text Converter
Decode binary into text as UTF-8, 7-bit ASCII or 16-bit UTF-16, with or without spaces, and find exactly what is wrong when it will not decode.
Text ToolsBMI Calculator
Work out your BMI, category and healthy weight range in metric or imperial units.
Health ToolsBullet List Generator
Turn lines, commas or sentences into a bullet, numbered or checklist, with nested levels, as text, Markdown or HTML.
Text Tools