A equals 1 through Z equals 26
Encoding maps each letter to its index in the English alphabet. Decoding reads numbers (often space- or hyphen-separated) back into letters. This is a classroom substitution, not encryption: there is no key, and frequency analysis is trivial.
Puzzles, worksheets, and what to use instead
Teachers use A1Z26 for intro cryptograms. Caesar and ROT13 add a shift; those are still toys. For secrets, use a real authenticated encryption tool—not this page, not MD5, and not Morse.
Punctuation, case, and non-English letters
Non-letters usually stay or become separators. Case is typically folded to A–Z. Accented letters are not in the 1–26 table unless stripped first. Encoding stays in the browser.