Ciphers · transpositionColumnar Transposition Cipher 4 1 3 2

A columnar transposition cipher with a keyword: the letters stay the same, only their order changes. The text is written in rows under the key and read by columns in the alphabetical order of the key letters. Encrypt or decrypt a text, and the table shows the column numbers and the reading order.

Everything runs in your browser — the text goes nowhere

01Encode02Diagram03How it works04Questions05Related
01

Encode

columns are read in the order of the key letters
Keyword
Plain text
Result
evacdeserodewir
The link will contain the text (up to 500 characters) and settings — share it with care.
02

Diagram

columns by the key “zebras”
632415
ZEBRAS
WEARED
ISCOVE
RED

The numbers above the columns are the reading order. The highlighted column is read first.

03

How it works

Rows under the key

z e b r a s

The text without spaces is written in rows under the letters of the keyword, as many letters per row as the key has.

Column numbers

zebras → 6 3 2 4 1 5

Columns are numbered by the alphabetical order of the key letters: “a” first, “b” second. Repeated letters count left to right.

Read by columns

wearediscovered → evacdeserodewir

The ciphertext is the columns in number order. The letters are the same, only their order changes, so frequencies stay as in the language.

04

Frequently asked questions

The text without spaces is written in rows under the letters of a keyword, as many letters per row as the key has. The columns are then numbered by the alphabetical order of the key letters and written out top to bottom, first column first. With the key ZEBRAS, WEAREDISCOVERED becomes EVACDESERODEWIR. The letters are the same; only their order changes.

Updated