Skip to the content

Text to ASCII Codes Converter

List the numeric code of every character in a text, in decimal, hex or octal, or turn a list of codes back into text.

Only need one direction? Text to ASCII Codes and ASCII Codes to Text have their own pages.

Share this tool:TwitterFacebookLinkedInWhatsAppEmail

Character codes

Every character a computer can store has a number. For the letters, digits and punctuation on an English keyboard that number is its ASCII code: A is 65, a is 97, 0 is 48 and a space is 32. Unicode continues the same list for every other writing system, so é is 233, € is 8364 and 🎉 is 127881.

This tool lists those numbers, one per character, separated by spaces. Going the other way, it takes numbers separated by spaces or commas and gives you the text.

A few codes worth knowing

CharacterDecimalHex
Tab909
Line feed (new line)100A
Carriage return130D
Space3220
0 to 948 to 5730 to 39
A to Z65 to 9041 to 5A
a to z97 to 12261 to 7A

Upper and lower case letters are exactly 32 apart, which is a single bit. Early programs changed the case of a letter by flipping that one bit.

Code points, not bytes

The numbers shown are Unicode code points. Above 127 they are not the same as the bytes that end up in a file: é is code point 233, but UTF-8 stores it as the two bytes C3 A9. If the bytes are what you need, use the hexadecimal encoder.

See all 15