Background
ASCII is a standard data-encoding format for electronic communication between computers. ASCII assigns standard numeric values to letters, numerals, punctuation marks, and other characters used in computers.
To convert a character to its ASCII code equivalent we can reference an ASCII table
The table has five headings: Dec, Hx, Oct, Html and Chr. To convert a character to its ASCII equivalent we find it in the Chr column and then take the corresponding number from the Dec column. For example, we can see “A” has the value of 65.
The conversion can also happen the other way, if we take the ASCII code 65 and look it up in the ASCII table we can see it matches up with the “A” character.