Scytale Cipher Converter

Wrap and unwrap a transposition cipher that writes text across a fixed number of columns.

Technology and NetUpdated 2026-11-192 min read
Scytale Cipher Converter
Letters only, up to 200 characters. Non letters are removed.
The diameter of the rod, modelled as the number of letters per row.
Converted message
...
Columns used...
Letters processed...
Operation...

What it does

The scytale is one of the oldest recorded ciphers. A strip of parchment was wrapped around a rod, the message was written along the rod, and the strip was then unwrapped and sent. Only someone with a rod of the same diameter could read it.

This tool models the rod diameter as a number of columns. Encryption writes the message across rows of that width, pads the final row with X characters if needed, and reads the columns in order. Decryption reverses the process.

The page opens with HELLOWORLD and three columns. The rows are HEL, LOW, ORL and DXX, so reading the columns gives HLODEORXLWLX.

The cipher is easy to break because the number of possible rod sizes is small. Trying each column count in turn quickly reveals readable text.

Historical accounts describe Spartan use of the device. Modern scholarship debates whether it was used for secrecy or for authentication, but the transposition mechanism is well understood.

How to use

  1. Type the message to encrypt or decrypt.
  2. Enter the number of columns, which represents the rod diameter.
  3. Choose encrypt or decrypt.
  4. Read the converted message as the main result.
  5. Check the column count and letter count.
  6. Expect padding X characters when decrypting a padded message.

Formula

Write letters row by row into a grid of width k, then read column by column for encryption
k
Number of columns, the cipher key.
grid
The rows of k letters formed during encryption.
padding
X characters added to complete the final row.

Decryption first determines how many characters belong to each column, splitting the ciphertext into column strings, then refills the grid row by row. Padding added during encryption may remain visible after decryption.

Worked example

Example: HELLOWORLD with three columns

The page opens with message HELLOWORLD and key 3.

  1. Write the letters in rows of three: HEL, LOW, ORL and D.
  2. Pad the last row with two X characters to complete it.
  3. Read the first column: H, L, O, D, giving HLOD.
  4. Read the second column: E, O, R, X, giving EORX.
  5. Read the third column: L, W, L, X, giving LWLX.
  6. The tool reports the ciphertext HLODEORXLWLX.

Reference table

Sample scytale conversions
MessageColumnsResult
HELLOWORLD3HLODEORXLWLX

Limits

  • Messages are limited to 200 letters.
  • Columns must be a whole number from 2 to 20.
  • Non letters are removed before processing.
  • Padding X characters are not removed automatically on decryption.

Common mistakes

  • Using a different column count to decrypt.
  • Forgetting that final padding may appear in the decrypted text.
  • Treating the cipher as substitution rather than transposition.
  • Keeping spaces when they should be removed.
  • Assuming the cipher is secure.

Try it yourself

Quick checks. Answers sit tucked under each question.

Encrypt HELLOWORLD with three columns.

HLODEORXLWLX.

Why is padding used?

To complete the final row so columns have equal length.

Is the scytale secure?

No. A small number of possible keys makes brute force trivial.

Questions

What is a scytale?

A rod used with a strip of parchment to perform a transposition cipher.

What is the key?

The rod diameter, modelled here as the number of columns.

How does it differ from Caesar?

It rearranges letters rather than replacing them.

Why pad with X?

To make all rows the same length before reading columns.

Who used it?

Ancient Greeks, especially Spartans, according to historical accounts.

Is it easy to break?

Yes, by trying each possible column count.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.