Zigzag transposition with adjustable rail count. 100% local processing in your browser. No input text is sent to the server.
Rail Fence arranges letters in a zigzag across several rails and reads them row by row. Whitespace and Unicode characters are preserved.
Rail Fence cipher (zigzag)
Rail Fence is a transposition cipher: it rearranges characters instead of substituting letters. Write the message in a zigzag across parallel rails, then concatenate the rows.
With three rails, WEAREDISCOVEREDFLEEATONCE becomes WECRLTEERDSOEEFEAOCAIVDEN. To decrypt, enter the rail count or try multiple possibilities.