Columnar Transposition Cipher
Encrypts or decrypts text by writing it in rows under a keyword and reading the columns in alphabetical key order, padding the last row with X.
Result
—
Columnar transposition: the same letters, another order
Every classical cipher does one of two things: substitute letters or move them around. Columnar transposition is the second kind, and that changes what cryptanalysis can do. Letter frequency in the ciphertext is identical to the plaintext's — it stays full of the same common letters — because no letter was swapped. What changed was the order.
The text is written in rows under a keyword and then read down the columns, in alphabetical order of the key's letters. Enter the key and the text and pick the direction: the page builds the grid, orders the columns and reads them off, or undoes the process. The text is padded with X when it does not fill the last row, so every column has the same height.
Recognising a transposition is easy precisely because letter frequency stays normal — if the ciphertext distribution looks like the language's but the text is unreadable, it is transposition. Breaking it means trying key lengths and column orders, hunting for the digrams that make sense in the language. That is why transposition usually appears combined with substitution: applying both destroys the order and the identity of the letters.
Frequently asked questions
Where does the column order come from?
Why the X at the end?
What is double transposition?
Related Tools
Vigenère Autokey Cipher Encoder and Decoder
Enciphers or deciphers text with the classic autokey variant, where the plaintext extends the keyword instead of repeating it. Letters A to Z only.
Encrypt Text
Apply classic ciphers (Caesar, ROT13, Atbash) or Base64. Useful for puzzles, CTFs and testing — do not use for real security.
Baconian Cipher, 5-Bit A/B Groups
Encodes each letter as a group of five A and B symbols in Bacon's 24-letter alphabet, where I shares a code with J and U shares one with V.
Nihilist Cipher Encoder
Encodes text with the Nihilist cipher: every letter becomes its Polybius square coordinate, with I and J sharing a cell, added to a repeating numeric key.
Interactive Alberti Cipher Disk
Alberti cipher disk with two rotating rings — rotate the inner ring and encrypt/decrypt letter by letter.
Affine Cipher with Explicit Keys (a, b)
Encrypts text with E(x) = (a·x + b) mod 26, refuses any key a that shares a factor with 26, and prints the modular inverse needed to decrypt.