Skip to content
NMSnabbit.

String to ASCII Converter

Convert a string to its ASCII / Unicode character codes.

Converters Runs in your browser

How do you convert a string to ASCII codes?

ASCII assigns 0–127 to English letters, digits and punctuation, and this tool prints those codes for every character in your string: “Cat” gives “67 97 116”. Characters outside ASCII don’t fail; they print their full Unicode code point instead, so “ñ” shows as 241. Codes are separated by single spaces, ready to paste into an array literal or a lesson handout.

How to use the String to ASCII

  1. 1 Type the string whose codes you want.
  2. 2 One decimal code prints per character, in the same order as the input.
  3. 3 Values up to 127 are classic ASCII; higher ones are Unicode code points.
  4. 4 Copy the code list.

What you can use it for

  • Finding ASCII codes for programming.
  • Teaching the ASCII table.
  • Generating numeric codes from text.
  • Comparing characters by code value.

Frequently asked questions

Are these true ASCII values?
Within 0–127, yes, they match the standard table exactly. A curly quote or emoji falls outside ASCII, so its larger Unicode value appears instead.
What separates the codes?
A single space between codes, nothing else. That format drops straight into most languages as an integer array after a split.
How do I get the string back?
Run the codes through the ASCII to String converter and the original characters come back in order.

Related tools

More Converters

More tools like this:

All Converters