Why this tool is useful
Use Rail Fence for visual transposition exercises where character order changes but the original alphabet and punctuation do not.
Encode or reconstruct text with a bounded zigzag rail transposition while keeping every input character intact.
Ready. Your working data stays in this browser.
Use Rail Fence for visual transposition exercises where character order changes but the original alphabet and punctuation do not.
Encoding walks down and up across 2–50 rails before reading rows; decoding rebuilds the same zigzag positions and fills them from the ciphertext.
Three rails turn WEAREDISCOVEREDFLEEATONCE into WECRLTEERDSOEEFEAOCAIVDEN and the inverse path restores the plaintext.
The calculation is deterministic and explains validation errors instead of silently changing invalid input.
Input and output remain in this tab. Copy and download happen through browser APIs without a server upload.
Every run reports its tool mode, timestamp and input/output size so transformed data can be audited.