Rail Fence Cipher Encoder + Decoder

The Rail Fence cipher writes plaintext in a zigzag pattern across N "rails", then reads off row-by-row. Classic transposition cipher — easy to break by brute force (just try 2-10 rails) but a fun puzzle cipher.

How to use the Rail Fence Cipher Encoder + Decoder

Pick encrypt/decrypt, set number of rails. The zigzag pattern visualization shows how the cipher works.