Skip to content

ROT13 / Caesar Cipher

Shift letters through the alphabet by any amount from 1 to 25 — ROT13 is the specific, self-inverse case of shift 13, the classic trick for hiding spoilers and punchlines in forum posts. Case and non-letter characters are preserved exactly.

  • Any shift from 1 to 25, not just ROT13
  • ROT13 preset for the classic case
  • Preserves case and punctuation exactly
  • Encode and decode with the same shift value
  • Runs fully client-side

Cipher

Shifted locally, nothing uploaded

Shifted

How to use ROT13 or a Caesar cipher

  1. 01

    Enter your text

    Type or paste the text to shift.

  2. 02

    Set the shift amount

    Use 13 for classic ROT13, or any other amount from 1 to 25 for a general Caesar cipher.

  3. 03

    Copy the result

    Running the same shift again on ROT13 output restores the original text — for any other shift, use the same value in the decode direction.

Why ROT13 is its own inverse and other shifts are not#

The alphabet has 26 letters, and ROT13 shifts by exactly half of that — 13. Applying it twice adds 13 + 13 = 26, which wraps all the way back around to the original letter. That is the one shift value where encoding and decoding are the identical operation, which is why ROT13 tools traditionally have a single button instead of separate encode and decode modes. Any other shift needs the complementary value (shift 5 needs shift 21 to reverse it, since 5 + 21 = 26) to undo it — this tool computes that automatically for the decode direction.

What this is actually good for — and what it is not#

ROT13's traditional use is hiding a spoiler, a puzzle answer, or a punchline in plain sight in a forum post or email — readable only if a reader deliberately chooses to decode it, which discourages accidentally spoiling something for someone scrolling past. It has been used this way on Usenet and web forums for decades specifically because it is trivial and has no pretense of being secure. It provides no actual security — a Caesar cipher with any shift is broken in seconds by hand, let alone by a computer, since there are only 25 possible shifts to try. Never use this for anything that needs genuine confidentiality.

Why numbers and punctuation stay exactly as typed#

The Caesar cipher, as classically defined, only operates on the 26 letters of the alphabet — a number, a space, or a punctuation mark has no defined shift because it was never part of the original scheme. This tool leaves anything that is not an ASCII letter completely untouched, so a shifted sentence keeps its original spacing, capitalization pattern, and punctuation, only the letters themselves move.

Frequently asked questions

Why does ROT13 use the same operation for both encoding and decoding?

Because 13 is exactly half of the 26-letter alphabet — applying the shift twice adds up to a full 26-letter rotation, which lands back on the original letter. It is the one shift value where encode and decode are identical.

Is ROT13 or a Caesar cipher actually secure?

No, not remotely — there are only 25 possible shifts, so it is broken by hand in seconds. Its traditional use is hiding a spoiler or punchline from a casual glance, never protecting genuinely sensitive information.

Does capitalization survive the shift?

Yes — uppercase letters shift to uppercase, lowercase to lowercase, exactly matching the original pattern.

What happens to numbers and punctuation?

They are left completely untouched — only the 26 letters of the alphabet are part of the classic Caesar cipher scheme, so spacing, punctuation and digits pass through unchanged.

Is my text sent anywhere?

No. The shift happens entirely in your browser — nothing is uploaded.

Developers

UUID Generator

Generate cryptographically random UUID v4 or time-ordered UUID v7, in bulk.

Developers

Base64 Encoder & Decoder

Encode and decode Base64 with correct UTF-8 handling, including the URL-safe alphabet.

Developers

ULID Generator

Generate ULIDs — sortable by creation time like UUID v7, but Crockford Base32 instead of hex.