Rail Fence Cipher
Your workspaceProcessed on your device
A few things to know.
Supports 2–128 rails and up to 16,000 UTF-16 code units of text. JSON decode input may use up to 160,000 code units, including escapes and structure. Uses browser Unicode grapheme segmentation when reading plain text. Plain output is blocked when its grapheme boundaries change.
- Paste text and enter a rail count. Choose Plain text for a classical ASCII example or JSON grapheme array to preserve boundaries.
- Encode down and up from the top rail. The output reads each rail in order. Save the rail count and ciphertext format alongside the result.
- Select Use result as input to switch to Decode. Check that the same settings restore the original text.