Alberti Cipher

Encrypt and decrypt Latin text with the Alberti cipher disk online. Choose a keyword, set the starting index, inspect the live disk mapping, and see how this Renaissance cipher turns a plain A–Z alphabet into a keyed substitution.

Input
0 chars · 0 bytes
Try:
Result
✓ Based on the Alberti cipher disk (c. 1467) ✓ Keyword-mixed inner ring alphabet ✓ We never store your messages ✓ Processed on our server
Examples
Classic Alberti disk Key: ALBERTI Index: A
Input HELLO WORLD
Output CRHHM WMPHE

A basic encryption example using keyword ALBERTI and starting index A.

Different keyword Key: ZEBRAS Index: A
Input ATTACK AT DAWN
Output ZQQZBH ZQ RZVK

The keyword ZEBRAS creates a different inner alphabet while the index remains A.

Decode with known settings Key: ALBERTI Index: A
Input CRHHM WMPHE
Output HELLO WORLD

The same Alberti settings reverse the ciphertext back to the original message.

Starting index shift Key: CIPHER Index: D
Input MEET AT NOON
Output FIIO XO GJJG

Index D rotates the disk before encryption, changing the mapping produced by the keyword CIPHER.

How the Alberti Cipher Disk works

The Alberti cipher is based on the cipher disk described by Leon Battista Alberti in the fifteenth century. In this online implementation the outer ring is the fixed plaintext alphabet A–Z, while the inner ring is a keyed alphabet generated from your keyword.

To encrypt, the tool finds each plaintext letter on the outer ring and reads the aligned character from the inner ring. To decrypt, it performs the reverse lookup. The selected starting index rotates the inner disk before processing, so the same keyword can produce different ciphertext when the index changes.

What this Alberti Cipher tool does

Use this page to encrypt and decrypt short Latin-alphabet messages, compare keyword and index combinations, and study the mapping created by the Alberti disk. The interactive wheel updates as you type a keyword, select an index, or rotate the disk with the arrow controls.

The result panel also returns the generated inner alphabet and offset through the API, which makes the tool useful for checking homework examples, building demonstrations, and explaining how a physical cipher disk maps one alphabet onto another.

Keyword, inner alphabet and starting index

The keyword is reduced to unique Latin letters in their first-seen order, then the remaining unused A–Z letters are appended. For example, a keyword starts the inner ring with its distinct letters and completes the ring with the rest of the alphabet.

The starting index is a letter from A to Z. It defines which outer-ring position is aligned with the first position of the inner ring. Index A means no offset; index D shifts the mapping by three positions. Invalid or empty index values fall back to A.

Input rules and practical limits

The service works with the Latin alphabet A–Z and preserves uppercase and lowercase letters. Spaces, punctuation, numbers, and non-Latin characters are left unchanged in the output, so you can keep message formatting while transforming only the supported letters.

This implementation uses one chosen disk alignment for the whole message. Historically, Alberti's disk could also be rotated during a message to introduce multiple substitution alphabets, but the online tool focuses on the clear keyword-plus-index workflow shown in the interface.

FAQ

This implementation uses the Latin alphabet A–Z. The outer ring is fixed, and the inner ring is a keyword-mixed permutation of the same 26 letters. Characters outside A–Z, including spaces, punctuation, digits, and non-Latin letters, pass through unchanged.

The keyword generates the inner ring alphabet. The tool keeps the first occurrence of each Latin letter in the keyword, ignores repeated letters, and appends the remaining unused letters of A–Z. An empty keyword produces a normal A–Z inner ring.

The starting index is the A–Z letter used to rotate the inner disk before encryption or decryption. Index A is offset 0, B is offset 1, and so on. Changing the index changes the current mapping even when the keyword stays the same.

Yes. Switch the tool to decode mode, paste the ciphertext, and use the same keyword and starting index that were used for encryption. Decryption reverses the lookup from the inner ring back to the fixed outer alphabet.

No. This online service uses one selected starting index for the entire message. You can rotate the disk manually before running a message, but the tool does not insert mid-message index changes or automatic rotation markers.

The keyword defines the order of the inner ring. Even if the starting index stays the same, a different keyword creates a different inner alphabet, so most letter substitutions change.

No. Use it for education, puzzles, and historical demonstrations, not for protecting real secrets. With a fixed alignment it behaves like a keyed substitution cipher and can be attacked with frequency analysis; historical disk rotation was an important step toward stronger polyalphabetic systems, but it is still not modern cryptography.
Related tools

Caesar Cipher

Classic letter-shift cipher with custom shift values.

XOR Cipher

Online XOR encryption and decryption with text or hex keys.

Playfair Cipher

Classic digraph substitution cipher with keyword matrix encryption.