Encode and decode text with the Rail Fence transposition cipher using a chosen number of rails. Runs entirely in your browser.
Supported Tools:
Encode and decode text with the Rail Fence transposition cipher using a chosen number of rails. Runs entirely in your browser.
The Rail Fence cipher is a classic transposition cipher. Instead of replacing letters, it rearranges them by writing the message in a zigzag across several rows, then reading the rows in order. This tool encodes and decodes Rail Fence text for any number of rails, for puzzles and CTF challenges.
Input:
WEAREDISCOVEREDFLEEATONCE (3 rails)
Output:
WECRLTEERDSOEEFEAOCAIVDEN
What does the rail count do?
It sets how many rows the zigzag uses. More rails scramble the order more, but the cipher stays easy to break by trying small rail counts.
Is it secure?
No. Transposition alone is weak and there are few sensible rail counts to try, so it is for learning and puzzles.
Does it keep spaces and symbols?
Yes. Every character including spaces is placed on the zigzag, so they move with the rest.
Does my text leave the browser?
No. It runs locally in your browser.