Text to ASCII Converter
List the ASCII / byte code of every character, for example "Hi" → 72 105.
Processed locally in your browser· Your data stays in your browser.
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?
- Type or paste the text to convert.
- Choose how the numbers are separated (space, comma, comma + space or new line).
- 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:
Hello, World!
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.
Related tools
ASCII to Text Converter
Paste a list of ASCII / byte codes such as 72 101 108 108 111 and read the text.
Encoding & Decoding
Text to Decimal Converter
Get the Unicode number of every character: "é" is 233, "世" is 19990 and 😀 is 128512.
Encoding & Decoding
Text to Hex Converter
See the exact bytes behind any text, from a quick "Hello" to emoji, formatted the way your code or debugger expects.
Encoding & Decoding
Text to Binary Converter
Turn words into ones and zeros: each byte of your text is shown as eight bits.
Encoding & Decoding
Unicode Character Inspector
Paste text or an emoji and see exactly which code points, bytes and scripts it is made of.
Encoding & Decoding
Text to Octal Converter
Write your text as base-8 byte values, for example "Hi" → 110 151, or as \110\151 escapes.
Encoding & Decoding