Skip to content

Text to ASCII Converter

List the ASCII / byte code of every character, for example "Hi" → 72 105.

Processed locally in your browser

Options
0 chars · 0 lines
The result will appear here.

What is Text to ASCII Converter?

ASCII assigns numbers 0–127 to the basic Latin letters, digits, punctuation and control characters: "A" is 65, "a" is 97, "0" is 48 and a space is 32. Programmers meet these codes in C strings, HTTP, serial protocols and lookup tables.

This tool outputs the byte value of each character of your text in UTF-8. For plain ASCII text that is exactly the ASCII table; for accented letters or emoji you get the two to four byte values UTF-8 uses, and a note tells you so. Pick spaces, commas, comma+space or new lines between numbers.

How does it work?

  1. Type or paste the text to convert.
  2. Choose how the numbers are separated (space, comma, comma + space or new line).
  3. Copy the list, or press Swap to turn a list of codes back into text.

Common use cases

  • Filling a byte array in C, Python or Arduino code such as {72, 101, 108, 108, 111}.
  • Looking up the code of a character, for instance to build a regular-expression range.
  • Checking for hidden control characters (9 = tab, 10 = line feed, 13 = carriage return) in pasted text.
  • Completing a classroom exercise on the ASCII table.

Examples

Try this input in the tool above:

Input
Hello, World!
Output
72 101 108 108 111 44 32 87 111 114 108 100 33

Privacy

Text to ASCII Converter runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

For characters above 127 the numbers are UTF-8 bytes, not code points. Use Text to Decimal if you want one Unicode number per character.

Frequently asked questions

What is the difference between this and Text to Decimal?

This tool lists bytes (0–255). "é" gives 195 169. Text to Decimal lists Unicode code points, so "é" gives 233 and 😀 gives 128512.

What ASCII code is a space or a new line?

A space is 32, a tab is 9, a line feed is 10 and a carriage return is 13. They appear in the output like any other character.

Is extended ASCII (128–255) supported?

Values 128–255 appear as UTF-8 bytes of non-ASCII characters. In the reverse tool you can decode them as ISO-8859-1 if your codes came from a Latin-1 table.

More tools in Encoding & Decoding →