Skip to main content
PixelTools

Scytale cipher

Encode or decode the Spartan rod cipher by choosing how many columns wrap around the rod. Free, private — nothing leaves your device.

0 characters
Ciphertext0 characters
Your Scytale result will appear here.

Everything you need to wrap a message around a rod

Any rod size

Try any column count from 2 to 1000. If you don't know the size, step through a few and see which one reads.

Live results

The result updates as you type. No button to press.

Nothing is lost

Letters, spaces, digits and punctuation all stay in the text, only their order changes.

100% private

Runs entirely in your browser. Nothing you type is uploaded or stored.

Encode or decode in three steps

  1. 1

    Set the number of columns

    This is how many letters fit around one turn of the rod. The sender and reader must use the same number.

  2. 2

    Choose encode or decode, then paste your text

    The text is written in rows of that width and read down the columns. Decoding reverses it exactly.

  3. 3

    Copy or download the result

    The result updates live. Copy it, download it as a .txt file, or use swap to feed it back in and check the round trip.

Built for learning, puzzles, and quick checks

The Scytale scrambles the order of letters instead of swapping them. It's great for teaching transposition, not for real security.

Learning transposition ciphers

See the difference between moving letters around and swapping them for other letters.

Puzzle hunts and escape rooms

If a message looks like real words in the wrong order, try a few rod sizes.

Checking homework

Verify a hand-worked Scytale instead of writing out the grid again.

Ancient Greek history

Try the strip-and-rod method attributed to the Spartans, one of the oldest known ciphers.

Frequently asked questions

What is the Scytale cipher?

+

The Scytale is a transposition cipher. Ancient Greeks, notably the Spartans, are said to have wound a strip of leather around a rod and written along it. Unwound, the strip looks like random letters, and only a rod of the same thickness shows the message again.

How do I decode a Scytale cipher?

+

Switch to Decode, set the column count to your guess at the rod size, and paste the ciphertext. If the output isn't readable, try a different number. The right rod size gives you real words straight away.

How do I find the right number of columns?

+

Try divisors of the message length first, since a full rod gives a clean grid. Step through small values like 2 to 10 and look for readable words.

Why does the tool keep my spaces?

+

Scytale only reorders characters, it never replaces them. So spaces and punctuation are scrambled along with the letters, and come back in the right place on decode.

What if the message doesn't fill the last row?

+

That's fine. The tool handles a short last row and decodes it back exactly, so you don't need to add padding.

Is the Scytale cipher secure?

+

No. There are only a few sensible rod sizes to try, so it falls to guessing in seconds. It's for puzzles and learning only.

Is my text uploaded anywhere?

+

No. Everything runs in your browser, and nothing you type is sent to a server.

Try the Scytale cipher now

Free, no account needed.