CruxDevCruxDev Tools Prompts
text Utility • Zero-Server Privacy • 100% Client-Side

Caesar Cipher / ROT13

Shift letters by any amount (ROT13 preset included) — encode and decode Caesar ciphers instantly.

Overview

Shifts every letter of your text through the alphabet by an amount you choose, from 0 to 25, with one-click presets for the famous offsets: ROT1, ROT3 (classic Caesar), ROT13 and ROT25. Non-letters pass through untouched, capitalisation is preserved, and the output updates as you move the slider.

How It Works

Type into the input box and the shifted text appears below immediately. Adjust the Shift slider to any value from 0 to 25, or tap one of the preset buttons — 1, 3, 13 and 25 — to snap to the common offsets. Digits, punctuation and spacing are copied through unchanged, and uppercase and lowercase letters stay in their own case. Because the shift wraps modulo 26, applying the tool twice with complementary settings returns your original text.

Step-by-Step Usage Guide

  1. Type or paste your message into the input box.
  2. Drag the Shift slider, or click the ROT1, ROT3, ROT13 or ROT25 presets.
  3. Read the shifted output in the result box — it updates live with the slider.
  4. To reverse a message, apply the complementary shift (26 minus the original), or re-run ROT13 on ROT13 text.

Technical Specifications & Standards

The transform is the textbook substitution: each letter's code point is rebased to 65 or 97 depending on case, the shift is added modulo 26, and the base is added back, so 'z' with shift 3 wraps to 'c'. The slider value is normalised with a double modulo, which makes the arithmetic safe even if a value outside 0-25 sneaks in. Shift 13 — ROT13 — is its own inverse because 13 is half of 26, which is why it became the net convention for hiding spoilers and punchlines in Usenet culture; shift 3 is the one Suetonius attributes to Julius Caesar, and ROT1 is mainly a children's game. The cipher offers no security whatsoever: with 26 possible keys it falls to brute force by eye, and even without trying keys, letter-frequency analysis breaks it from a couple of sentences. Its honest modern uses are puzzle-setting, teaching modular arithmetic, and obfuscating text from the most casual glance.

Targeted Use Cases

  • Solving or setting newspaper, classroom and escape-room puzzles that use a Caesar shift.
  • Demonstrating modular arithmetic and substitution ciphers in a lesson, with instant visual feedback.
  • Applying ROT13 to hide a spoiler, answer or punchline in a forum post.
  • Quickly encoding a short note so it is not readable at a glance, while knowing it is trivially decodable.

Notes & Gotchas

  • Never use this for secrecy — 26 keys means anyone can break it by hand in minutes.
  • To decode an unknown shift, scan the presets and nearby slider values; readable output identifies the key.
  • Remember non-English letters are not shifted; accented characters pass through unchanged.
  • Use ROT13 when you need the convention others recognise; use other shifts when a puzzle demands it.

Frequently Asked Questions

How do I decode a message when I do not know the shift?

Slide through the 26 values and stop when the output reads correctly — with only 26 possibilities this takes seconds. If nothing reads well, the text may use a different cipher entirely.

Is the Caesar cipher secure?

No. Twenty-six keys can be brute-forced by eye, and letter-frequency analysis breaks longer texts without trying keys at all. Treat it as a puzzle and teaching tool, never as protection.

Why is ROT13 special?

Because 13 is exactly half of 26, applying ROT13 twice restores the original text. The same operation encodes and decodes, which is why it became the standard spoiler-hiding convention online.

What happens to numbers and punctuation?

They are left exactly as typed. The cipher rotates only the 26 letters, preserving case, digits, spaces and symbols, which keeps the shape of the original message visible.