Rail Fence Cipher
Encrypt and decrypt the zigzag rail fence transposition cipher with 2-10 rails.
Runs locally in your browser. Your input is not uploaded.
How to Use
- 1
Enter your message
Spaces are stripped by default, like classical practice.
- 2
Set rails and mode
2-10 rails; both parties must match.
- 3
Copy the result
Decrypt reverses the zigzag with the same rail count.
Frequently Asked Questions
- Letters are written in a zigzag across N imaginary rails, then read off rail by rail. WE ARE DISCOVERED with 3 rails becomes WECRLTEERDSOEEFEAOCAIVDEN.
Related Tools
Base64 EncoderEncode text and binary data as Base64Base32 EncoderEncode or decode Base32 per RFC 4648URL EncoderPercent-encode and decode URLsHash GeneratorGenerate MD5, SHA-1, and SHA-256 hashesHMAC GeneratorCreate HMAC signatures with a secret keyBcrypt GeneratorHash and verify passwords with bcryptPassword GeneratorStrong random passwords with strength indicatorPassphrase GeneratorGenerate memorable multi-word passphrases