A1Z26 Cipher
Convert letters to numbers and back again using A = 1 through Z = 26.
Loading the A1Z26 tool…
Encode turns letters into numbers; Decode turns number groups back into letters. Switching tabs keeps your input and reads it again in the new mode.
Input
Output
Mapping table
Using This Tool: Guide & Notes Show guide
A1Z26 maps letters to alphabet positions: A = 1, B = 2, through Z = 26.
How to use it
- Choose Encode to turn letters into numbers, or Decode to turn numbers back into letters.
- Type or paste into Input and the result updates automatically. Switching modes keeps your input; it does not automatically replace it with the output.
- Use Load example for a short sample matched to the selected mode. The mapping table shows every letter and its number.
- Copy either panel, or use Save .txt to download its text. Clear text leaves your settings intact; Reset defaults restores the initial settings.
- On mobile and tablets, open Options & stats beneath the workspace to reveal the formatting controls.
Options and settings
- Standard encoding uses hyphens between letters and retains word spacing when Preserve spacing is enabled. Hyphens disappear during decoding; retained spaces remain spaces.
- Keep literal digits & symbols safely wraps non-letter runs in §...§, so a literal 7 is not mistaken for the letter G. A § inside a wrapper is escaped as §§.
- Zero-pad numbers to 2 digits produces 01 through 26. When this option is enabled, a compact even-length run of valid pairs such as 010226 can also be decoded as ABZ.
- Uppercase decoded letters controls the case of decoded A–Z letters, not text inside literal wrappers.
- Group output creates blocks of 2–12 tokens when encoding, and blocks of decoded characters when decoding. Original word spacing is lost. The punctuation setting chosen before grouping still applies when encoding; grouped decoding restores wrapped literals.
Notes
- A1Z26 is a simple representation of alphabet position, not secure encryption.
- Number boundaries matter: 1-1-1 decodes to AAA and 11 to K, but 111 is outside 1–26 and becomes ?. The tool does not guess how an ambiguous unseparated number should be split.
- Only A–Z letters are converted. Other characters can be preserved inside literal wrappers, but the original case of converted letters cannot be recovered.
- Processing and downloads happen on your device; nothing is uploaded. Input is limited to 1,000,000 characters with a visible error instead of silent truncation, and large edits are briefly debounced.
- For graded puzzles, printable exercises and timed practice, use the separate A1Z26 Puzzle Generator linked above.
Related Article
A1Z26 Cipher: The Mechanics of Simple Substitution
How replacing letters with their alphabet positions teaches symbolic transformation, reversibility, and the limits of simple secrecy.