SECRET WEAREDISCOVERED
ACDESEEVROWIRDE
Keyword: SECRET. Columns are read in alphabetical key order while repeated letters keep their original order.
Encrypt and decrypt text with the Columnar Transposition cipher online using a keyword that controls column order. A classic transposition cipher where characters are rearranged rather than replaced.
SECRET WEAREDISCOVERED
ACDESEEVROWIRDE
Keyword: SECRET. Columns are read in alphabetical key order while repeated letters keep their original order.
SECRET ACDESEEVROWIRDE
WEAREDISCOVERED
Keyword: SECRET. The same keyword restores the original row-wise message.
ZEBRA ATTACK AT DAWN
C TAWT AATNAKD
Keyword: ZEBRA. Spaces are preserved and moved as part of the transposition pattern.
COLUMN HELLO, WORLD!
H !LOOL,DEWLR
Keyword: COLUMN. Punctuation marks are not removed; they are rearranged with the rest of the text.
The Columnar Transposition cipher writes the message into rows under a keyword. Each letter of the keyword labels one column. The columns are then read in alphabetical keyword order to produce the ciphertext.
Unlike substitution ciphers such as Caesar or Vigenere, this method does not replace letters with new symbols. It keeps the original characters but changes their positions, which makes it a transposition cipher.
When the keyword contains repeated letters, this tool keeps those columns in their original left-to-right order. This creates stable and predictable results for both encryption and decryption.
The keyword controls the order in which columns are read. For example, with the keyword SECRET, the message is written row by row under the keyword:
The columns are read in alphabetical key order. Repeated letters keep their original left-to-right order, so SECRET gives this read order:
3:C → 2:E → 5:E → 4:R → 1:S → 6:T
Reading the columns in this order produces the ciphertext ACDESEEVROWIRDE.
This tool implements a simple single-key columnar transposition cipher. The text is written row by row, and columns are read according to the sorted keyword. The same keyword is required to decrypt the message.
This version does not add padding characters. If the final row is shorter than the keyword length, it remains incomplete. During decryption, the tool calculates the original column lengths from the ciphertext length and the keyword.
Substitution ciphers change the symbols in a message. For example, Caesar shifts letters and Vigenere applies keyword-based letter shifts. Columnar Transposition works differently: it preserves the original characters and only changes their order.
This makes it useful for understanding the difference between substitution and transposition, two major ideas in classical cryptography. However, by itself it is not secure by modern standards.
Columnar transposition methods were used in historical manual cryptography because they were simple to perform with paper and pencil while still producing text that looked scrambled.
More complex systems sometimes applied transposition more than once or combined it with other cipher methods. This page focuses on the simple single-key version, which is best suited for learning, puzzles, and demonstrations.
Classic letter-shift cipher with custom shift values.
Classic digraph substitution cipher with keyword matrix encryption.
Classical reciprocal cipher based on a keyword.
Vigenere-style classical cipher that uses a numeric key.
Keyword-based polyalphabetic encryption and decryption.
XOR-based Vernam encryption with Base64 output.