Atbash Cipher - Ancient Encryption Tool
Free Online Tool

Substitution Cipher Decoder

Encrypt or decrypt a monoalphabetic substitution cipher with your own 26-letter key.

This tool is useful for classical cryptography practice, escape-room design, and testing keyed alphabet mappings.

How It Works

A substitution cipher replaces each plaintext letter with a corresponding ciphertext letter from a fixed key alphabet. If A maps to Q, every A in the message becomes Q during encryption.

To decode the message, you reverse that mapping. This tool normalizes your key so it always becomes a complete 26-letter alphabet, even if you paste a partial or messy input.

Unlike polyalphabetic ciphers such as Vigenère, a monoalphabetic substitution cipher uses the same mapping for the entire message. That consistency makes it easy to use but also easy to attack with frequency analysis.

Examples

Atbash-style reversed alphabet

Key

ZYXWVUTSRQPONMLKJIHGFEDCBA

HELLO becomes SVOOL

Keyboard-style key

Key

QWERTYUIOPASDFGHJKLZXCVBNM

HELLO maps according to the custom alphabet shown in the tool

History and Use Cases

Monoalphabetic substitution is one of the oldest practical cipher families. It appears in many historical systems because it is simple to apply by hand and easy to describe with a single keyed alphabet.

Today, substitution ciphers are used mainly for teaching, puzzles, puzzlehunt design, and introductory cryptanalysis exercises. They are not suitable for real confidentiality because repeated letters and common word shapes leak too much information.

Why It Matters

Training

Great for practicing manual encryption, decryption, and frequency-based attacks.

Education

Helps explain the difference between simple substitution, transposition, and stronger modern ciphers.

Puzzle Design

Useful for creating custom encoded clues with a bespoke alphabet rather than a fixed Caesar shift.