Text to ASCII Converter

Type text to see the code of each character, or paste a list of codes to read the text. Choose decimal, hex, octal or binary.

Use the tool

Loading the tool…

About Text to ASCII Converter

Convert text into ASCII codes, or codes back into text. Choose the number system for the codes: decimal, hexadecimal or octal.

Worked example

Enter `Hi` and choose decimal. The tool shows 72 and 105, the codes for H and i.

Limits

ASCII covers basic English letters, digits and symbols. Other characters need a wider encoding, such as Unicode, so check the result for accented or non-Latin text.

How to use Text to ASCII Converter

  1. Choose to convert text to codes or codes to text.
  2. Choose the number system and, if you like, plain ASCII only.
  3. Type or paste your input and copy the result.

Good to know

  • ASCII has 128 characters, codes 0 to 127. Other characters use their Unicode code point, which can be much larger.
  • These are code points, not the UTF-8 bytes that a file would store. The text-to-binary and hex tool shows bytes.
  • Codes can be written with or without prefixes: 0x or U+ for hex, 0o for octal, 0b for binary.
  • Line breaks are code 10 and tabs are code 9. The null code 0 and surrogate codes are not accepted.

Frequently asked questions

What is the difference between ASCII and Unicode?

ASCII is the first 128 characters. Unicode includes those and many more, and keeps the same codes for them.

Why does an emoji have a big number?

Emoji live far up in the Unicode range, for example the grinning face is code 128512.

Is anything I type saved or sent?

No. The work happens in your browser on this page, and nothing is stored or sent to us.