Line Shifting Steganography

Hide secret messages by shifting text lines vertically by tiny amounts

How Line Shifting Steganography Works

Line shifting steganography encodes secret messages by vertically displacing text lines by imperceptibly small amounts. Each line can be shifted up or down by a fraction of a pixel:

  • Bit '0': Line shifted up by 0.5 pixels
  • Bit '1': Line shifted down by 0.5 pixels

For example, encoding the letter 'A' (ASCII 65, binary 01000001) requires 8 lines with the following shifts:

  • Line 1: Up (0) | Line 2: Down (1) | Line 3: Up (0) | Line 4: Up (0)
  • Line 5: Up (0) | Line 6: Up (0) | Line 7: Up (0) | Line 8: Down (1)

Requirements: The cover text must have at least 8 lines per character in your secret message. For a 5-character message, you need at least 40 lines.

Output formats: HTML (recommended) or PDF. The decoder can extract the message by measuring the vertical positions of each line.

Click below to load sample data and see the technique in action:

Encoded Output

Preview

Decode Hidden Message

Paste the HTML content with encoded line shifts below to extract the hidden message.

The decoder analyzes the vertical position of each line to reconstruct the binary data and convert it back to text.

Decoded Message

Analyze Document

Check if an HTML document contains hidden line shift steganography and automatically extract any hidden messages.

Analysis Results