Rail Fence Cipher (Zigzag Encoder)

Security Tools

Write text in a zigzag over rails and read it row by row

FreePrivateInstant
Add a file · .txt .md .csv .json … · up to 2.00 MB
Number of rails

Similar tools you may like

History

All history →

Rail Fence Cipher (Zigzag Encoder) — at a glance

Scramble a message in a zigzag pattern, or unscramble one.

You paste
WEAREDISCOVERED
Run
Result
WECRERDSOEEAIVD

How to use it — step by step

Text to encode or decode, and the number of rails (rows).

1

Add your text

Paste or type your input into the box. The Sample button fills in an example.

2

Choose the options

Pick the mode and settings you need. Results update when you run the tool again.

3

Press Run

The result is made instantly inside your browser.

4

Copy the result

Use the Copy button, or send it to another tool.

Pro tips

Small things that make the result better.

✦Both sides must use the same rail count.
✦Spaces count as characters, so keep them the same.
✦Try 3 rails first.

Quick facts

Freeno signup
Privateruns in your browser
Instantresult in a second
No limituse it as often as you like

Frequently Asked Questions

What is a rail fence cipher?+

The text is written diagonally over a number of rows and then read row by row. Only the order of letters changes.

Can I decode without the rail count?+

Try 2, 3, 4 and so on until the text makes sense.

Is my data safe?+

Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.

Is this tool really free?+

Yes — completely free, no signup, no watermark and no usage limit.

More Free Tools