ROT13 Decoder & Encoder Online (ROT47, ROT5, ROT18)
Decode or encode ROT13 as you type, plus ROT47, ROT5, ROT18 and any custom shift from 1 to 25. A letter map shows which pairs swap. Runs in your browser.
Updated November 2026
Reviewed by Rafael Duarte
26 ÷ 2 = 13 — each letter maps to its exact mirror partner in the alphabet
ROT13 shifts each letter 13 positions forward (A→N, B→O…). Because the alphabet has 26 letters, applying it twice returns the original text — making it self-inverse. Widely used in online forums and games to hide spoilers.
ROT5 is the digit equivalent of ROT13: it shifts digits 0–9 by 5 positions (0→5, 1→6…). Like ROT13, applying it twice returns the original number. Often combined with ROT13 to form ROT18.
ROT18 applies ROT13 to letters and ROT5 to digits simultaneously, leaving all other characters unchanged. The name comes from 13 + 5 = 18. It is also self-inverse.
ROT47 works on all printable ASCII characters (! to ~, 94 symbols total). Each character is shifted by 47 positions within that range. It is self-inverse because 94 ÷ 2 = 47, so applying it twice returns the original.
Custom lets you choose any letter shift N from 1 to 25. Only letters (A–Z, a–z) are rotated; digits and symbols are left unchanged. When N = 13 it becomes ROT13 (self-inverse). For any other N, to decode use shift 26 − N.
How to use this ROT13 converter
Paste, pick a variant, copy. For ROT13, encoding and decoding are the same operation
1. Paste your text
The ROT13 result shows up instantly in the Output box as you type. There is no button to click and no page reload.
2. Pick a variant if you need one
ROT5 (digits), ROT18 (letters + digits), ROT47 (full printable ASCII), or a custom shift from 1 to 25.
3. Copy the output
Click Copy in the Output box and the result goes straight to your clipboard.
When you'd actually use this
The most common scenarios among people who reach for a ROT13 tool
Hiding spoilers
The original Usenet use case — readers actively choose to decode instead of being surprised mid-scroll.
Puzzles, ARGs and CTF challenges
ROT13 shows up as a layer in escape rooms and CTF puzzles where participants need to recognize and reverse it.
Teaching cryptography basics
The simplest real cipher to implement by hand — the standard first example before AES or RSA.
Obscuring strings in source code
Prevent accidental reading during code review — not for security, just to avoid spoiling an answer key or joke.
What this ROT13 encoder does
The whole ROT family in one interface
Live preview
Type or paste and the output updates on every keystroke — there's nothing to submit. The Encode/Decode toggle only changes the result for a custom shift.
Visual alphabet mapping
With ROT13 or ROT18 selected, a Letter Mapping panel shows all 13 letter pairs (A↔N, B↔O…) and highlights the ones in your text. It is hidden for ROT5, ROT47 and Custom.
ROT5, ROT18 and ROT47 built in
Rotate digits only, letters plus digits, or the full 94-character printable ASCII range including punctuation.
Custom shift, 1 to 25
Set any Caesar cipher shift beyond the standard ROT13, with an automatic inverse shift for decoding.
Examples
ROT13 in, ROT13 out
Common mistakes
Using it as real encryption
ROT13 provides zero security — anyone who recognizes it can reverse it instantly, with no key required. For sensitive data, use AES-256 or RSA instead.
Expecting numbers to change
Standard ROT13 only rotates the 26 letters of the alphabet. Switch to ROT18 or ROT47 if you need digits and punctuation shifted too.
Forgetting it preserves capitalization
Hello becomes Uryyb, not URYYB — uppercase letters map to uppercase, lowercase to lowercase.
Why use this ROT13 converter
Beyond standard ROT13, this covers the entire family of self-inverse rotation ciphers — ROT5, ROT18 and ROT47 — in a single interface, with a visual alphabet map showing exactly which letters are swapped as you type.
There's no extra click between pasting and seeing a result: the output updates live, and an "apply again" button lets you confirm the self-inverse property on the spot instead of trusting it blindly.
The ROT cipher family
Same math, different character sets
Frequently asked questions
Paste the encoded text into the Input box with ROT13 selected and the decoded text appears in the Output box. ROT13 is its own inverse, so the same operation that encodes also decodes: Uryyb turns back into Hello. There is no separate decode step and no key to enter.
Select ROT47 and paste the text. Like ROT13, it reverses itself, so w6==@ decodes to Hello and Hello encodes to w6==@. If the encoded text is full of symbols like =, @ or 6 where letters should be, ROT47 is a good first guess.
ROT13 replaces each letter with the one 13 positions ahead in the alphabet — A becomes N, B becomes O, up to M→Z, then wraps back around: N→A, up to Z→M. It's a special case of the Caesar cipher with a fixed shift of 13. For other shifts, use the Custom option here or the Caesar cipher tool, which can also try every shift for you.
Because 13 × 2 = 26: shifting by 13 twice moves every letter a full loop around the 26-letter alphabet, landing back where it started. The same logic applies to ROT5 (5×2=10), ROT18, and ROT47 (47×2=94), which is why the same operation handles both encoding and decoding.
No. ROT13 offers no real security — anyone who recognizes the pattern can decode it instantly without a key. It was designed for social courtesy, like hiding spoilers or puzzle answers, not for protecting data from anyone motivated to read it.
Standard ROT13 leaves all of that untouched — only the 26 Latin letters get rotated. Use ROT5 if you need digits shifted too, ROT18 for letters and digits together, or ROT47 to rotate every printable ASCII character including punctuation.
ROT13 shifts only letters within a 26-character range. ROT47 shifts all 94 printable ASCII characters — letters, digits, and symbols — using a shift of 47, which produces output that looks far more scrambled since punctuation changes too.
It dates back to Usenet in the early 1980s, before rich text or spoiler tags existed in plain-text forums. Wrapping a spoiler in ROT13 let readers scroll past safely and only decode it if they actively chose to — a convention that stuck even after better UI options became available.
Further reading
Related Tools
- Caesar Cipher Wheel: Encode, Decode & Brute Force Developer Encode or decode on an interactive Caesar cipher wheel, crack an unknown shift with all 25 brute-force results and frequency analysis. ROT13 included.
- Morse Code Translator with Audio, Flash & Tap Input Developer Translate text to Morse code and back, hear it at 5–40 WPM, watch the light flash, tap code in with a mouse or finger and practice with a listening quiz.
- Enigma Machine Simulator: M3 & M4 Emulator Online Developer Encrypt and decrypt like a WWII operator: Enigma M3 and M4, rotors I–VIII, ring settings, a 10-cable plugboard and a step-by-step signal animation.
- Reverse Text Generator: Backwards, Mirror & Palindrome Developer Write text backwards, turn it into mirrored Unicode letters or apply ROT13, then copy it to Instagram, Discord or X. Also tells you if it is a palindrome.
- ASCII Table Generator: Plain-Text & Markdown Tables Developer Turn CSV or typed data into a plain-text table: MySQL, Unicode box, rounded, double-line, Markdown, RST or minimal style. Copy it or download as .txt.