Text to ASCII Code Converter

See the ASCII code of every character you type: A is 65, a is 97, a space is 32 and 0 is 48. Paste a list of decimal codes to turn it back into text. For characters outside ASCII, such as Hindi letters or ₹, choose whether you want their UTF-8 bytes or their single Unicode number.

Encoding
Direction

Hindi letters and ₹ take 3 bytes each.

Text
Decimal codes

5 characters, 5 bytes in UTF-8.

Processing runs in your browser. What you type never leaves this device.

Features

  • Decimal ASCII codes for every character

  • Decimal codes back to text

  • Space, comma or new-line separated

  • UTF-8 bytes or Unicode code points beyond ASCII

  • Swap direction in one click

  • Runs in your browser

Who looks up ASCII codes

Programming exercises

Check char codes for Caesar ciphers, sorting tasks and C or Java string loops.

Excel and Sheets

CHAR(65) and CODE("A") use these numbers; look one up before writing the formula.

Spotting hidden characters

A code like 160 (non-breaking space) or 13 (carriage return) explains why two strings that look equal do not match.

ASCII codes in brief

The ranges to remember

  • 0 to 31: control codes (9 is tab, 10 is new line, 13 is carriage return).
  • 32 is space; 48 to 57 are the digits 0 to 9.
  • 65 to 90 are A to Z; 97 to 122 are a to z. Lower case is upper case plus 32.

Beyond ASCII

ASCII stops at 127. For ₹ or नमस्ते there are two choices: UTF-8 bytes (₹ is 226 130 185) or the Unicode code point (₹ is 8377). Spreadsheet UNICODE() and JavaScript codePointAt() give code points; files store UTF-8 bytes. The Unicode character inspector shows both side by side.

Text to ASCII Code Converter - FAQ