Free Toolkit

ROT13 Encoder/DecoderApply ROT13 cipher — shift each letter by 13 positions. Encoding and decoding are the same operation.

ROT13 Encoder/Decoder illustration
📝

ROT13 Encoder/Decoder

Apply ROT13 cipher — shift each letter by 13 positions. Encoding and decoding are the same operation.

How to Use
1

Enter Text

Type or paste text to apply ROT13 encoding.

2

View Result

See each letter shifted by 13 positions in the alphabet.

3

Copy Output

Copy the encoded/decoded text. Apply again to reverse.

What Is ROT13 Encoder/Decoder?

ROT13 is a simple letter substitution cipher that shifts each letter by 13 positions in the alphabet. Since the English alphabet has 26 letters, applying ROT13 twice returns the original text — making it its own inverse. "Hello" becomes "Uryyb", and applying ROT13 to "Uryyb" gives back "Hello". ROT13 is used to hide spoilers, puzzle answers, and mildly sensitive content online. It's not encryption — it provides no real security — but it's useful for simple text obfuscation.

Why Use Our ROT13 Encoder/Decoder?

  • Self-inverse: encode and decode with the same operation
  • Apply twice to get back the original text
  • Classic cipher used for spoiler hiding and puzzles
  • Preserves numbers, spaces, and punctuation unchanged
  • Instant, client-side processing

Common Use Cases

Spoiler Hiding

Hide movie, book, or game spoilers that readers can easily decode when ready.

Puzzle Creation

Encode puzzle answers or hints using ROT13 for interactive games.

Simple Obfuscation

Mildly obfuscate text to prevent casual reading without providing real security.

CTF Challenges

ROT13 is a common basic cipher in capture-the-flag competitions.

Technical Guide

ROT13 shifts each letter by 13 positions using modular arithmetic: newChar = ((charCode - base + 13) % 26) + base, where base is 65 for uppercase (A-Z) and 97 for lowercase (a-z). The modulo 26 wraps Z back to A and z back to a. Non-alphabetical characters (digits, spaces, punctuation) pass through unchanged. Since 13 is exactly half of 26, the operation is its own inverse: ROT13(ROT13(text)) = text. This is a special case of the Caesar cipher with shift 13.

Tips & Best Practices

  • 1
    ROT13 is its own inverse — apply it twice to get original text
  • 2
    Only letters are shifted; numbers and punctuation remain unchanged
  • 3
    ROT13 provides zero security — it's obfuscation, not encryption
  • 4
    Used extensively on Usenet forums for hiding spoilers and jokes
  • 5
    A = N, B = O, ..., M = Z, N = A, O = B, ..., Z = M

Related Tools

Frequently Asked Questions

QIs ROT13 encryption?
No, ROT13 is simple substitution with no key. It provides obfuscation, not security. Anyone who knows it's ROT13 can decode it instantly.
QWhy does applying ROT13 twice give back the original?
Because the alphabet has 26 letters and 13 + 13 = 26. Shifting by 13 twice is a full rotation, returning to the starting position.
QDoes it affect numbers?
No, only letters (a-z, A-Z) are shifted. Numbers, spaces, and punctuation remain unchanged.
QWhat is ROT13 used for?
Hiding spoilers, puzzle answers, and mildly sensitive content. It's also used in programming jokes and CTF challenges.
QIs ROT13 the same as Caesar cipher?
ROT13 is a specific case of the Caesar cipher with a fixed shift of 13. The general Caesar cipher can use any shift value.

About ROT13 Encoder/Decoder

ROT13 Encoder/Decoder is a free online tool from FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration required. No ads. Just fast, reliable tools.