---
title: "Classical Ciphers, Caesar/ROT13/Affine/Rail - AllTools"
description: "A box of classical ciphers — Caesar, ROT13, Affine and Rail Fence — with adjustable shift and rails for crypto students and CTF players — offline."
canonical_url: "https://tool.warmday.wang/en/crypto/classic"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "A box of classical ciphers — Caesar, ROT13, Affine and Rail Fence — with adjustable shift and rails for crypto students and CTF players — offline."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "Classical Ciphers, Caesar/ROT13/Affine/Rail"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **Classical Ciphers**

Encode and decode text using classical algorithms: Caesar, ROT13, ROT47, Atbash, Affine, A1Z26, and Rail Fence. Supports custom parameters. Ideal for cryptography education and learning.

### **Algorithm Selection**

**Algorithm**

**Shift**

**Input**

**Result**

## **Usage**

#### **Algorithm Introduction**

Caesar Cipher: each letter is shifted by a fixed amount, the oldest substitution cipher; ROT13: Caesar cipher with shift 13 (self-reciprocal since alphabet has 26 letters); ROT47: rotates ASCII characters 33-126 by 47 positions; Atbash: maps each letter to its mirror (self-reciprocal); Affine Cipher: linear substitution E(x)=(ax+b) mod 26, requires a coprime to 26; A1Z26: one-to-one mapping between letters and numbers (a=1, b=2, ..., z=26); Rail Fence: transposition cipher writing plaintext in a zigzag pattern across rails.

#### **Steps**

1\. Select a cipher algorithm from the left panel; 2. Configure algorithm-specific parameters (shift, A/B, rails, etc.); 3. Enter text in the input box; 4. Click 'Encode' or 'Decode' to process; 5. View the result in the output area, click 'Copy' to copy.

#### **Notes**

Caesar cipher only processes English letters; other characters remain unchanged. Affine parameter A must be coprime to 26 (valid: 1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, 25). Rail Fence requires at least 2 rails. A1Z26 encodes lowercase letters to numbers and decodes numbers to letters. ROT13 and ROT47 are self-reciprocal (encoding twice restores the original).

## **Related tools**

More from the same category · Encryption

[**MD5 Hash**Generate 32-char MD5 digests for text and files to verify integrity and detect content changes locally.](https://tool.warmday.wang/en/crypto/md5) [**Hash Calculator**MD5, SHA-1, SHA-256, SHA-512 digests for text and files in one pass for checksums.](https://tool.warmday.wang/en/crypto/hash) [**Base64 Converter**Base64 encode/decode for text, UTF-8 and images, with Data URL output for inline embedding.](https://tool.warmday.wang/en/crypto/base64) [**Symmetric Encryption**Encrypt/decrypt with AES, DES, 3DES, RC4 and SM4, configurable mode, padding, key and IV, fully client-side.](https://tool.warmday.wang/en/crypto/symmetric) [**RSA Tools**Generate RSA key pairs (1024-4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS, browser-side.](https://tool.warmday.wang/en/crypto/rsa) [**PGP Tools**Generate OpenPGP keys, encrypt, decrypt and sign text or files with GnuPG-compatible ASCII-armored output.](https://tool.warmday.wang/en/crypto/pgp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/crypto/classic#webpage","url":"https://tool.warmday.wang/en/crypto/classic","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"Classical Ciphers, Caesar/ROT13/Affine/Rail","description":"A box of classical ciphers — Caesar, ROT13, Affine and Rail Fence — with adjustable shift and rails for crypto students and CTF players — offline."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/crypto/classic#app","name":"Classical Ciphers, Caesar/ROT13/Affine/Rail","description":"A box of classical ciphers — Caesar, ROT13, Affine and Rail Fence — with adjustable shift and rails for crypto students and CTF players — offline.","url":"https://tool.warmday.wang/en/crypto/classic","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/crypto/classic#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/crypto/classic#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Crypto & Security","item":"https://tool.warmday.wang/en/crypto"},{"@type":"ListItem","position":3,"name":"Classical Ciphers","item":"https://tool.warmday.wang/en/crypto/classic"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
