Substitution Cipher Encoder & Decoder

Keyword-seeded monoalphabetic substitution, all in your browser.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

A monoalphabetic substitution cipher replaces every letter with a fixed partner. This tool seeds that partner mapping from a keyword, making it easy to share a cipher with someone who only needs to remember a single word — handy for puzzles, escape rooms, classroom cryptography, and casual note-hiding.

How it works

The cipher alphabet is built in two steps:

  1. Keyword letters first. Take the keyword’s unique letters in the order they first appear and place them at the front of a new 26-letter alphabet.
  2. Fill the rest. Append every remaining letter of A–Z that the keyword did not use, in normal order.

Each plain letter A, B, C… then maps to the cipher letter in the same position. Encrypting applies this mapping; decrypting applies its inverse. Case is preserved, and anything that is not a letter passes through untouched.

Example

Keyword ZEBRA produces the cipher alphabet:

Plain:  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Cipher: Z E B R A C D F G H I J K L M N O P Q S T U V W X Y

So HELLO enciphers to FAJJM. Decrypting FAJJM with the same keyword returns HELLO.

Note this is not real-world encryption — letter frequencies leak the mapping. Everything runs in your browser; nothing is uploaded.

Ad placeholder (rectangle)