EditSafely

Convert Letters to Digits

Replace each letter with its position in the alphabet (a=1 … z=26).

Runs on your device, nothing uploaded

Between letters
Between words
Try:

0 chars · 0 lines

Output

Replace each letter with its position in the alphabet (a=1 … z=26).

Type or paste above to see the result here.

Example: Letter positions

What you paste never leaves this tab

Convert Letters to Digits is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Convert Letters to Digits

  1. 1. Paste the text to convert. Paste a word or phrase made of letters into the input pane, ready to be converted into its A1Z26 numeric equivalent.
  2. 2. Set the separator between numbers. Pick what goes between the numbers of one word in Between letters, such as a hyphen or a space, and what separates words in Between words, such as a slash. Accented letters count as their plain letter.
  3. 3. Copy the converted numbers. Copy the sequence of numbers from the output pane, where each letter became its alphabet position, and paste it wherever a numeric cipher output is wanted.

When to use Convert Letters to Digits

Convert Letters to Digits replaces each letter with its position in the alphabet, so a becomes 1 and z becomes 26, a scheme known as A1Z26. Use Convert Letters to Digits for building or solving simple number-substitution puzzles.

  • Building an A1Z26 puzzle clue. A scavenger hunt or escape room clue needs a word encoded as alphabet positions, and converting the answer here produces the numeric sequence for players to decode.
  • Demonstrating a basic numeric cipher. Teaching how letter-to-number ciphers work is clearer with a working example, and converting sample words shows students exactly how each letter maps to its position.
  • Encoding a short phrase as a number sequence. You want to lightly disguise a short phrase as a series of numbers for a puzzle or game, and this handles the letter-to-number conversion in one step.

Examples

Letter positions

Input

abc

Output

1-2-3

Words split by a slash

Input

hi there

Output

8-9 / 20-8-5-18-5

About the Convert Letters to Digits tool

Convert Letters to Digits is a free online tool that works entirely inside your web browser. Replace each letter with its position in the alphabet (a=1 … z=26). Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 211 Text utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 2 settings, including Between letters and Between words, and the result refreshes the moment you change one. 2 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Is Convert Letters to Digits free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.

Related tools

All Text Tools →