A1Z26 Cipher

The A1Z26 cipher replaces each letter with its position in the alphabet, A=1, B=2 up to Z=26, so HELLO becomes 8-5-12-12-15. Use it to turn letters to numbers and back.

Input

Direction

0 of 5000 characters.

Separator between letters

Output

Letters joined by dashes, words split by a space.

A=1, B=2 Alphabet Chart

  • A = 1
  • B = 2
  • C = 3
  • D = 4
  • E = 5
  • F = 6
  • G = 7
  • H = 8
  • I = 9
  • J = 10
  • K = 11
  • L = 12
  • M = 13
  • N = 14
  • O = 15
  • P = 16
  • Q = 17
  • R = 18
  • S = 19
  • T = 20
  • U = 21
  • V = 22
  • W = 23
  • X = 24
  • Y = 25
  • Z = 26

Why use our A1Z26 Cipher?

Letters to Numbers and Back

One box converts both ways: letters to numbers for writing a code, numbers to letters for solving one.

Nothing Dropped Silently

Characters with no number and numbers that cannot be read are listed under the output, so you know exactly what was lost.

Runs on This Page

Conversion happens in your browser. The code you type or paste is not sent to a server or saved anywhere.

What is the A1Z26 Cipher?

The A1Z26 cipher, also called the letter number cipher or numbered alphabet, replaces each letter with its place in the alphabet: A is 1, B is 2 and Z is 26. The name spells out the rule. Letters to numbers turns HELLO into 8-5-12-12-15, and numbers to letters reads it back as HELLO.

It is an encoding with a public table, not encryption: anyone with the chart can read it (Cipher Chronicle on A1Z26). That also sets it apart from a Caesar cipher, which turns letters into other letters. For letters that shift into other letters, try the Caesar cipher.

Convert Letters to Numbers

  • Range:A to Z become 1 to 26. Case is ignored, so a and A are both 1.
  • Dash and Space:Dash: "Hello world" becomes 8-5-12-12-15 23-15-18-12-4. Space: 8 5 12 12 15 / 23 15 18 12 4.
  • Word breaks:Letters joined by commas, words split by a space. With Space between letters, "/" marks the word break, because a space cannot mark both.
  • Line breaks:Line breaks are kept, so a poem or a list stays one line per line in both directions.
  • No number:Digits, punctuation, accented letters and emoji have no number. They are left out and listed under the output, never dropped silently.

Common Use Cases

Puzzle Hunts

Turn a clue word into numbers for a treasure hunt or a puzzle sheet, then decode it once to check it before you hand it out.

Escape Rooms

Decode a number sequence found on a prop, or write one for a room you are building.

Geocaching

Read a cache hint written as letter positions, or encode a hint of your own for a cache you hide.

Kids' Secret Codes

Swap notes in a code simple enough to work out with the chart under the converter.

Checking a Hand Decode

Paste numbers you decoded on paper and compare letter by letter. Items that could not be read are numbered, so you can find them.

Other Ways to Encode

For other ways to turn letters into symbols, try the binary text converter or the Morse code translator.

How to Use the A1Z26 Converter

1

Pick a direction

Press Letters to numbers to write a code, or Numbers to letters to read one you were given.

2

Type or paste

Type or paste up to 5000 characters. For letters to numbers, pick Space, Dash or Comma between letters.

3

Read the notes

Read anything listed under the output: characters with no number, or numbers that could not be read.

4

Copy the result

Press Copy numbers or Copy letters, or Clear to start again. The status line says how many were copied.

Number to Letter Cipher: Decoding A1Z26

Word Breaks Found

A slash marks word breaks if there is one. Otherwise a space marks a word break when dashes or commas split the letters.

Leading Zeros

Leading zeros are fine: 05 is E. Letters come back as capitals, because numbers carry no case.

No Guessing

Unseparated digits are ambiguous: 1215 has 5 readings, so the tool reports it as out of range and shows ?.

How It Was Read

A line under the output says how the input was read, for example dashes between letters and spaces between words.

Mixed Separators

Dashes and commas can be mixed in one code, so 1-2,3 decodes as ABC.

Reasons Given

Each problem names its reason: out of range 1 to 26, not a number, or not a whole number. The first 20 are listed, then a count of the rest.

Separators, Spaces and Invalid Numbers

  • •Placeholder: Each invalid token becomes ? in the output, so its position stays visible, and is listed with its item number.
  • •0 and 27: 0 and 27 are out of range. Some puzzles use them for a space; this letter number code reports them instead of guessing.
  • •Decimals and words: Decimals such as 2.5 and text such as abc are reported too.
  • •Writing by hand: With spaces between letters, put a slash between words so the decoder can tell where each word ends.
  • •Input limit: Input stops at 5000 characters, and a message says the rest was not converted.
  • •Source: dCode letter number cipher, for the separator and 0 or 27 conventions.

Convert Letters and Numbers Now

Write a clue for a puzzle, decode a string of numbers from an escape room, or check a secret note from a friend: pick a direction and start typing.

The A=1, B=2 chart sits under the converter for working by hand, and anything the tool could not convert is listed so nothing goes missing.

Related tools

Frequently Asked Questions

How do you decode A1Z26?

Swap each number for the letter at that position: 1 is A, 2 is B and 26 is Z. Press Numbers to letters and paste the code, for example 8-5-12-12-15 gives HELLO.

What number is each letter in the alphabet?

A is 1, B is 2 and so on up to Z, which is 26. The full chart sits under the converter.

Why does 1215 have more than one answer?

Without separators the digits can be grouped in 5 ways: ABAE, ABO, AUE, LAE and LO. This tool does not guess. It reports 1215 as out of range so you can add separators.

How do I show spaces in a letter number code?

With Dash or Comma between letters, words are split by a space. With Space between letters, words are split by " / ". Some puzzles use 0 for a space instead; this tool reports 0 as a problem rather than guessing.

Is A1Z26 the same as a Caesar cipher?

No. A1Z26 turns letters into numbers. A Caesar cipher turns letters into other letters by shifting them along the alphabet.