Text to ASCII Converter

Convert text to ASCII code numbers (decimal), or convert decimal ASCII codes back to readable text. Each character becomes its Unicode/ASCII code point.

Runs locallyInstantPrivate
Input
Output
ASCII codes appear here.

ASCII codes quick reference

  • A–Z: 65–90   a–z: 97–122   0–9: 48–57
  • Space: 32   Tab: 9   Newline: 10
  • !: 33   @: 64   #: 35   &: 38   .: 46

When ASCII codes are useful

  • Debugging encoding issues — check whether a mystery whitespace is a tab (9), newline (10), carriage return (13), or non-breaking space (160)
  • URL encoding — percent-encoding is ASCII code in hex: space = 32 = 0x20 = %20
  • String validation — verify printable ASCII only (codes 32–126)
  • Computer science exercises — understand character → number mapping fundamentals

Frequently asked questions

What is the ASCII code for A, a, and space?

A = 65, a = 97, Space = 32. Capital letters start at 65, lowercase at 97. The gap of 32 between them means you can toggle case by adding or subtracting 32 from the code.

What is the difference between ASCII and Unicode?

ASCII covers codes 0–127. Unicode extends this to 1.1M+ code points for all world scripts. For codes 0–127, they are identical. This tool outputs Unicode code points, which match ASCII for standard English text.

Why would I need ASCII codes?

Debugging encoding problems (tab vs space vs newline), understanding URL percent-encoding (hex of ASCII code), verifying strings contain only printable characters, and CS coursework on character encoding.

Can I decode comma-separated ASCII numbers?

Yes — switch to ASCII → Text mode and paste comma-separated numbers. The decoder splits on commas and whitespace and converts each number to its character.

Related tools