Where it comes from
Write the message in a zigzag across a few rails, then read each rail in turn. No letter changes, they only move, which makes it a transposition rather than a substitution.
A message worth knowing: We are discovered. The classic rail fence example: flee at once.
Learn it by heart
This is the cipher desk from Covert Mail, our free app for learning codes. The app teaches Rail fence a few characters at a time and plans practice around the ones you miss. It also keeps an archive of famous real messages to unlock. It’s free on the App Store and Google Play.
Download on the App Store ▶ Get it on Google Play
More codes and ciphers:
- Morse code translator
- NATO phonetic alphabet
- Caesar cipher
- ROT13
- Atbash cipher
- Tap code translator
- Pigpen cipher
- Braille translator
- Polybius square
- Flag semaphore
- Keyword cipher
- Vigenère cipher
- Substitution cipher
- Book cipher
Not sure which code a message is in? The cipher identifier guesses, and reads it when it can. For one scrambled alphabet and no key, use the cryptogram solver.