Columnar Transposition Cipher Online
Encrypt and decrypt uppercase text with a keyword-based columnar transposition pattern and deterministic column ordering.
How to Use the Columnar Transposition Tool
Encrypt and decrypt keyword-sorted columnar text with the same structure, spacing, and content depth as the stronger cipher pages.
Quick Overview
Columnar transposition is a classical cipher that reorders characters by writing them into rows and then reading them out by sorted keyword columns. Unlike substitution systems, the letters themselves do not change. Their positions do.
This page normalizes input to uppercase letters and pads the final row with X when needed. That keeps encode and decode behavior deterministic and avoids partial-column ambiguity, which is central to the broader family of transposition ciphers and older classical cipher methods.
Keyword
The keyword decides column order, with repeated letters resolved left to right.
Normalization
Only A-Z letters are processed, and the final row may be padded with X.
Best For
Learning transposition ciphers beyond the simpler Rail Fence pattern.
Choose a Keyword
The keyword determines how columns are ordered. This page defaults to ZEBRAS, a common teaching keyword because it shows how column sorting works clearly. If you want a simpler visual comparison, the Rail Fence cipher is the usual introductory alternative.
Write the Text into Rows
After normalization, the message is written into a grid whose width matches the keyword length. If the last row is incomplete, the tool adds X padding so the grid stays rectangular.
ATTACKATNOONZEBRASReview the Example Ciphertext
Example Input
ATTACK AT NOON
Example Output with Keyword ZEBRAS
COTNTTAOKNAA
Because this is a transposition system, the output still contains the same letters as the input, only in a different order. That makes it a good contrast page to the substitution-based ciphers in this section.
Decode with Complete Rows
Decode mode reconstructs the column grid and then reads it back row by row. That only works cleanly when the ciphertext length fills complete keyword-width rows, which is why the page validates the input before decoding. This is still part of historical cryptology rather than modern secure encryption. For a simpler transposition example, move to Rail Fence Cipher. For a keyword-based substitution page, try Vigenere Cipher.
Frequently Asked Questions
Is this a substitution cipher?
No. Columnar transposition reorders characters rather than replacing them.
Why does the tool add X padding?
Padding keeps the final row complete so the column grid can be encoded and decoded consistently.
Can I keep spaces and punctuation?
This page normalizes to uppercase letters only. That makes the transposition grid cleaner and easier to reverse.
What breaks decode mode most often?
Using the wrong keyword or a ciphertext length that does not fill complete rows is the most common cause of bad output.
Related Tools
ROT13 Encoder / Decoder
Encode and decode text using ROT13 cipher. Rotate letters by 13 positions for simple obfuscation
Caesar Cipher
Encrypt and decrypt text with a configurable Caesar shift from 1 to 25
Atbash Cipher
Encode and decode text using the Atbash mirror alphabet substitution cipher
Vigenere Cipher
Encrypt and decrypt alphabetic text with a keyword-based Vigenere cipher
Morse Code Encoder / Decoder
Convert plain text to Morse code and decode Morse sequences back to readable text
Rail Fence Cipher
Encrypt and decrypt text using the zig-zag rail fence transposition pattern