Skip to content
tools.best

Browse all tools

ASCII to Text Converter

This ASCII to text converter reads character codes separated by spaces as text: 72 101 108 108 111 is Hello. Switch direction to turn text into its codes.

Runs in your browser. Your text is not sent to a server. Sources: RFC 20 Updated

Direction
40 characters
11 characters

How the ASCII to text converter reads codes

Every character has a number, its code. The tool splits your input at spaces and commas, reads each piece as a number and looks up the character with that code. In the other direction it writes the code of each character.

72 β†’ H    101 β†’ e    108 β†’ l    108 β†’ l    111 β†’ o

The same codes can be written in other bases. Text to hex writes them in base 16 and text to binary in base 2. If your numbers only run from 1 to 26, they are probably the A1Z26 code; read them with the letters to numbers converter.

How to convert ASCII codes to text: a worked example

The codes 87 101 108 99 111 109 101:

  1. 87 is in the range 65 to 90, the capitals. 87 βˆ’ 64 = 23, and the 23rd letter is W.
  2. 101, 108, 99, 111, 109 and 101 are in the range 97 to 122, the small letters. Subtracting 96 gives 5, 12, 3, 15, 13, 5: e, l, c, o, m, e.
  3. Result: Welcome

Going the other way, Hello World is 72 101 108 108 111 32 87 111 114 108 100. The 32 in the middle is the space.

Bar of the 128 ASCII codes with the ranges 0–31 control codes, 32–64 space, digits and punctuation, 65–90 A to Z and 97–122 a to z, and markers showing that the codes 72 101 108 108 111 decode to Hello.
Capitals sit at 65 to 90 and small letters at 97 to 122, so a small letter is its capital plus 32.

Printable ASCII table: codes 32 to 126

Codes 0 to 31 and 127 are control codes with no visible character, for example 9 (tab), 10 (line feed) and 13 (carriage return). The printable characters are 32 to 126:

DecHexCharDecHexCharDecHexChar
3220space6440@9660`
3321!6541A9761a
3422"6642B9862b
3523#6743C9963c
3624$6844D10064d
3725%6945E10165e
3826&7046F10266f
3927'7147G10367g
4028(7248H10468h
4129)7349I10569i
422a*744aJ1066aj
432b+754bK1076bk
442c,764cL1086cl
452d-774dM1096dm
462e.784eN1106en
472f/794fO1116fo
483008050P11270p
493118151Q11371q
503228252R11472r
513338353S11573s
523448454T11674t
533558555U11775u
543668656V11876v
553778757W11977w
563888858X12078x
573998959Y12179y
583a:905aZ1227az
593b;915b[1237b{
603c<925c\1247c|
613d=935d]1257d}
623e>945e^1267e~
633f?955f_

ASCII to Text Converter: FAQ

What is ASCII?
ASCII is a table that gives each of 128 characters a number from 0 to 127: the English letters, the digits, punctuation and some control codes. It dates from the 1960s and is the first 128 entries of Unicode, so it still underlies almost all text today.
What is the ASCII code for A?
Capital A is 65 and small a is 97. The capitals run from 65 to 90 and the small letters from 97 to 122, so a small letter is always its capital plus 32.
How should I separate the codes?
With spaces, commas, semicolons or line breaks. Codes run together without a separator, such as 7210110810811, cannot be split reliably.
What happens with a code above 127?
Codes above 127 are not ASCII. The tool reads them as Unicode code points, so 233 is Γ© and 128512 is πŸ˜€. Text that was saved in an old 8-bit code page may use the numbers 128 to 255 for other characters.
Can I enter the codes in hex or binary?
Yes. Set Codes are to hexadecimal, octal or binary. In hex, 48 65 6c 6c 6f is Hello.

Sources