What is ZigZag Text?
ZigZag text (also known as the Rail Fence pattern) is a way of writing text where characters are written in a zigzag pattern diagonally up and down on successive "rails" or lines.
This effect creates a visually interesting "wave" of text that is often used in ASCII art, creative coding, and cryptography (Rail Fence Cipher).
How it Works
Imagine writing your message on a zigzag path across multiple rows. When you read the text horizontally row by row, you get the encrypted "Rail Fence" cipher text. However, this tool displays the visual zigzag pattern itself, preserving the spaces so you can see the wave effect.
H S I
I A
How to use this tool
- Enter Text: Type or paste your message into the input area.
- Set Rows: Adjust the number of rows to change the height of the wave.
- Copy Result: The tool generates a multi-line string with spaces preserving the layout. Copy and paste it into code blocks or monospace environments.