Text to ASCII Converter - Get the ASCII Code of Every Character

Text Tools Free to use

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

  1. Type or paste your text into the box.
  2. Choose the number system (decimal, hex or octal) and the separator between the codes.
  3. Decide what to do with characters outside ASCII: stop and show the problem, skip them, or replace them with a question mark.
  4. Solve the security check and press Convert to ASCII.
  5. 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.

Your rating

Report a bug or give feedback

Tell us about Text to ASCII Converter. The subject of your message will name this tool.