Skip to content
100% local

Porta cipher

Encrypt or decrypt text with the reciprocal Porta polyalphabetic cipher.

Input
Output

Porta cipher

The Porta cipher is a 16th-century polyalphabetic substitution cipher built from 13 self-reciprocal alphabets. Paste your text, choose a key, and this tool enciphers it letter by letter — and because every one of those 13 alphabets is its own inverse, running the result back through the tool with the same key restores the original text automatically.

The key can be any word or phrase; only its letters matter; each one selects which of the 13 alphabets encrypts the letter at that position, and the key repeats for as long as the text runs. The alphabet field lets you use a custom 26-letter ordering instead of plain A-Z, which changes how letters pair up and produces a different, still-reciprocal cipher from the same key. Turn off "Keep spaces and punctuation" to strip everything but letters from the output, the way the cipher was used historically to disguise word boundaries. "Match case of input" preserves upper and lower case letter by letter; turning it off normalizes the whole result to uppercase.

Don't know the key? Turn on brute-force and the tool lists all 13 possible single-letter-key candidates side by side, so you can scan for the one that reads as plain text. Non-letter characters — digits, accented letters, emoji, line breaks — are never touched by the substitution itself; whether they appear in the output depends only on the spaces-and-punctuation option. Windows and Unix line endings are handled the same way.

Everything runs locally in your browser — nothing you type or paste is ever uploaded or logged. Copy the result, download it as a .txt file, clear the panel, or send the output straight back into the input to encrypt it again or chain another tool.

FAQ

Is the Porta cipher the same for encryption and decryption?
Yes. Every one of its 13 alphabets is a self-inverse (reciprocal) substitution, so enciphering a text with a key and then enciphering the result with the same key returns the original text — the direction option exists for a familiar interface, but the computation is identical either way.
What can I use as a key?
Any word or phrase made of letters. Only the letters are used, in order, and they repeat across the whole text; spaces or punctuation typed into the key field are ignored.
What does the custom alphabet option change?
It reorders the 26 letters used to build the cipher's 13 alphabets, which changes which letters pair up. Enter any 26 unique letters — anything else is rejected with an explanation.
What does brute-force do if I don't know the key?
It ignores the key field and lists the result for every one of the 13 possible single-letter keys, one candidate per line, so you can spot the one that produces readable text.
Is my text uploaded anywhere?
No. The Porta cipher runs entirely in your browser — your text and key never leave your device.