ASCII Code to Text Converter

65
65
A

text

Show the working for text → ascii

This converter works on code values, one at a time, from the table. Codes run from 0 to 127; anything above that is reported as out of range. For whole text rather than single codes, use Binary to Text; for code values above 127, use Decimal to Text.

Going the other way? Convert text back to ASCII code

How do you convert ASCII code to text?

ASCII Code to text conversion reads each value as a code between 0 and 127 and looks up the character that the ASCII table gives for it.

  1. Read the first value. This example uses 65.
  2. Convert it to a decimal code if it is not one already: 65.
  3. Look that code up in the table. 65 is A.
  4. Repeat for every value and join the results: 65 = A.

ASCII Code to Text Conversion Table

The codes this page works through, each with the character it stands for and the same value in hex, octal and binary. Find the code in the first column and read across; the row is the whole conversion. Codes 0 to 31 and 127 have no glyph, so the Char column shows their short name instead. This page shows the rows you need; ASCII code chart (decimal, hex, octal, binary) carries all 128.

ASCII Code to Text Conversion Table
DecCharHexOctBin
33!2104100100001
4803006000110000
5793907100111001
65A4110101000001
72H4811001001000
90Z5A13201011010
97a6114101100001
100d6414401100100
105i6915101101001
110n6E15601101110
115s7316301110011
122z7A17201111010

Worked Example: 65 to Text

One code value, taken from the table and written out in full. This is the same working the converter shows when you turn on "show steps".

65
65
A

text

Result: 65 = A

Start with the code itself: 65. The table gives one row per code from 0 to 127, and that row is the whole answer — there is no arithmetic to get wrong, only a row to find. Reading the row across gives the same value in every base the table carries.

The row gives A directly. Nothing is padded and nothing is rounded, so a code either has a row or it is out of range — and the converter says which. That is the difference between a lookup and a calculation, and it is why the answer here can be checked by eye against the table above.

Check it in reverse

The value looks the same read backwards. A maps to code 65, and code 65 maps to 65 — the table is a two-way lookup, not a calculation, so no rounding or padding can change the answer. To verify the result by hand, convert the characters back to ASCII codes and compare it with the code you started from.

Worked examples: ASCII code to text

Each example gives the value first, then the working. Click a value to load it in the converter.

What is ASCII code 72 in text?

ASCII code 72 is H in text.

Method: look code 72 up in the 0–127 table; the row gives H.

Load this value in the converter

What is ASCII code 65 in text?

ASCII code 65 is A in text.

Method: look code 65 up in the 0–127 table; the row gives A.

Load this value in the converter

What is ASCII code 97 in text?

ASCII code 97 is a in text.

Method: look code 97 up in the 0–127 table; the row gives a.

Load this value in the converter

What is ASCII code 48 in text?

ASCII code 48 is 0 in text.

Method: look code 48 up in the 0–127 table; the row gives 0.

Load this value in the converter

What is ASCII code 33 in text?

ASCII code 33 is ! in text.

Method: look code 33 up in the 0–127 table; the row gives !.

Load this value in the converter

What is ASCII code 90 in text?

ASCII code 90 is Z in text.

Method: look code 90 up in the 0–127 table; the row gives Z.

Load this value in the converter

What is ASCII code 122 in text?

ASCII code 122 is z in text.

Method: look code 122 up in the 0–127 table; the row gives z.

Load this value in the converter

What is ASCII code 57 in text?

ASCII code 57 is 9 in text.

Method: look code 57 up in the 0–127 table; the row gives 9.

Load this value in the converter

What is ASCII code 100 in text?

ASCII code 100 is d in text.

Method: look code 100 up in the 0–127 table; the row gives d.

Load this value in the converter

What is ASCII code 110 in text?

ASCII code 110 is n in text.

Method: look code 110 up in the 0–127 table; the row gives n.

Load this value in the converter

What is ASCII code 115 in text?

ASCII code 115 is s in text.

Method: look code 115 up in the 0–127 table; the row gives s.

Load this value in the converter

What is ASCII code 105 in text?

ASCII code 105 is i in text.

Method: look code 105 up in the 0–127 table; the row gives i.

Load this value in the converter

Every example above reverses exactly — look the same characters up as ASCII codes.

What Changes the Code Output?

Values above 127

A value above 127 is out of range and the converter says so rather than guessing. Codes 128–255 belong to extended sets such as Latin-1, not to ASCII, so there is no single right character for them. the ASCII code chart in four bases lists every code that is in range.

Which base the code is written in

The same code can be typed as decimal, hex, octal or binary, and the base selector says which one you mean. 65, 41, 101 and 01000001 are all the letter A. Pick the wrong base and you look up a different row.

Control codes and printable codes

Codes 32 to 126 are printable characters; 0–31 and 127 are control codes. A control code has no glyph, so the table shows its short name instead — 10 is LF, 13 is CR. Converting one is valid; displaying one is not.

One code or a list

Several codes separated by spaces convert as a list, in order, and each keeps its own row. The separator is a display choice and does not change any value.

ASCII Code to Text in Code

The same rule in one line. Both take code values and return the characters.

Python: bytes(int(g, 10) for g in s.split()).decode('utf-8')
JavaScript: new TextDecoder().decode(new Uint8Array(s.split(/\s+/).map(g => parseInt(g, 10))))

Common Mistakes

Frequently Asked Questions

Is ASCII still used today?

Yes, constantly. ASCII defines 128 characters, codes 0–127, using 7 bits; in practice each code is stored in one 8-bit byte with a leading 0. Newer character sets keep those same first 128 codes, so a file written in ASCII still reads correctly.

Is a .txt file an ASCII file?

Only if every code in it is 0 to 127. ASCII codes 32–126 are printable characters; 0–31 and 127 are control characters (for example 10 = line feed, 13 = carriage return, 32 = space). The extension promises no more than that the file is plain text.

How do you open an ASCII file?

Any text editor opens it — Notepad, TextEdit, nano, VS Code. If characters come out wrong, the file is not pure ASCII: Codes 128–255 are not part of ASCII. They belong to extended sets such as Latin-1 (ISO 8859-1), where 255 is ÿ; in pure ASCII a value above 127 is out of range.

Can you enter ASCII codes in hex, octal, or binary?

Yes. Pick the base with the selector above and the converter reads the same 128 rows. A is ASCII 65 = 0x41 = 0o101 = 0b01000001; a is 97 = 0x61 = 0o141 = 0b01100001. Uppercase and lowercase differ by 32, which is bit 5.

Every code here reverses: the same value converts straight back in the character to ASCII code direction.

The rest of the family sits on the converter grid for every pair.