Ttooleras
🔄

ROT13 Encoder/Decoder

Encoding Tools

Apply the ROT13 cipher to any text — letters rotate 13 positions in the alphabet. Self-inverse, so the same tool encodes and decodes.. Free, private — all processing in your browser.

ROT13 is its own inverse — encoding and decoding use the same operation.

Advertisement

The ROT13 Encoder Decoder applies the classic ROT13 cipher to any text. ROT13 rotates each letter 13 positions in the alphabet — A becomes N, B becomes O, N becomes A (since rotating 13 wraps around back). Because 13 is half of 26 (the alphabet size), applying ROT13 twice returns the original text, making it self-inverse. Encode and decode use the same operation; no separate decoder is needed.

ROT13 is not serious encryption — it is trivially reversible and was never meant to hide sensitive data. Its main use is obscuring text in casual contexts: spoilers in forum discussions (someone can choose to decode if they want to see the spoiler), Easter eggs in programs, and some Usenet customs. The tool also supports related variants: ROT5 (rotates digits 0-9 by 5), ROT18 (ROT13 plus ROT5 — letters and digits together), and ROT47 (rotates all printable ASCII 33-126 by 47, covering more than just letters). All rotations preserve non-alphabetic characters unchanged.

ROT13 Encoder/Decoder — key features

Self-inverse

Apply ROT13 twice to get back the original. One tool for both encoding and decoding.

Preserves case and punctuation

Uppercase stays uppercase, lowercase stays lowercase, non-letters pass through unchanged.

ROT5 for digits

Rotate digits 0-9 by 5 positions for obfuscating numeric content.

ROT18 combined

Apply ROT13 and ROT5 together in one pass for alphanumeric obfuscation.

ROT47 for full ASCII

Rotate all printable ASCII characters for broader coverage including punctuation.

Live preview

Output updates as you type so you can see the cipher applied in real time.

Copy output

One-click copy the rotated text to clipboard.

Client-side only

No network — text stays in your browser.

How to use the ROT13 Encoder/Decoder

  1. 1

    Paste text

    Drop any text into the input field.

  2. 2

    Choose variant

    ROT13 (letters), ROT5 (digits), ROT18 (both letters and digits), or ROT47 (all printable ASCII).

  3. 3

    See output

    The rotated text appears immediately below. Apply again to decode (since the cipher is self-inverse).

  4. 4

    Copy the result

    One-click copy to clipboard.

  5. 5

    Verify round-trip

    Paste the encoded output back in and apply ROT13 again to confirm you get the original.

Common use cases for the ROT13 Encoder/Decoder

Forums and spoilers

  • Spoiler text on Usenet: Historical Usenet convention to obfuscate spoilers — readers apply ROT13 to reveal.
  • Puzzle hints: Hide solutions to puzzles in ROT13 so readers choose whether to decode.
  • Easter eggs: Embed hidden messages in software or documents that ROT13 reveals.

Education

  • Teaching ciphers: ROT13 is the simplest substitution cipher — good starting point for students learning cryptography.
  • Historical cryptography: Caesar’s cipher from ancient Rome used letter shifts; ROT13 is its direct descendant.
  • Programming exercises: Implementing ROT13 is a classic beginner programming exercise.

Software

  • Config file obfuscation: Light obfuscation of non-sensitive config values — remember it is not real encryption.
  • Debug output: Obfuscate diagnostic strings in shipped software so they are not immediately readable but easy to decode for support.
  • Capture the flag: CTF puzzles often include ROT13 as an initial decoding step.

ROT13 Encoder/Decoder — examples

Basic

Simple word rotated.

Input
Hello
Output
Uryyb

Self-inverse

ROT13 twice returns the original.

Input
Uryyb (ROT13 applied)
Output
Hello (ROT13 applied again)

Preserved punctuation

Only letters rotate.

Input
Hello, World! 2024
Output
Uryyb, Jbeyq! 2024 (numbers and punctuation unchanged)

ROT47

All ASCII characters shift.

Input
Hello 2024!
Output
w6==@ a_ah0

ROT18

Letters and digits together.

Input
abc 789
Output
nop 234

Technical details

ROT13 is a Caesar cipher with a fixed shift of 13. For each letter: A through M rotate forward by 13 to N through Z, and N through Z rotate back (by wrapping) to A through M. Because rotating 26 positions (the full alphabet) returns to the start, and 13 is exactly half, applying ROT13 twice gives back the original text. This is the self-inverse property that lets the same function encode and decode.

Case is preserved: uppercase stays uppercase, lowercase stays lowercase. Non-alphabetic characters (digits, punctuation, spaces, non-Latin scripts) pass through unchanged.

ROT5 applies the same idea to digits. Digits 0-4 rotate forward by 5 to 5-9; digits 5-9 rotate back to 0-4. Useful in combination with ROT13 when the text contains numbers that also need obfuscation.

ROT18 combines ROT13 and ROT5 in one operation. Good for alphanumeric text where you want both letters and digits obfuscated by one pass.

ROT47 shifts all printable ASCII characters (codes 33-126, which is 94 characters total) by 47. Since 94 divided by 2 is 47, ROT47 is also self-inverse. It covers much more than letters — punctuation and symbols rotate too. The output looks noisier than ROT13 because shifted punctuation characters appear in unusual positions.

Implementation: for ROT13, check if character is in A-Z or a-z; if so, compute (code - base + 13) modulo 26 and add the base back. For ROT47, check if character is in range 33-126; compute (code - 33 + 47) modulo 94 and add 33.

Non-ASCII characters like accented letters, Cyrillic, CJK, and emoji pass through ROT13 unchanged because they are not in A-Z or a-z. For true encryption of non-Latin text, use a real cipher, not ROT13.

Performance: rotation is a simple character-level transform, O(n) in text length. Multi-megabyte text rotates in milliseconds.

Common problems and solutions

Mistaking for security

ROT13 is not encryption. It is obfuscation only. Anyone seeing rotated text can decode it instantly. Never use ROT13 to protect passwords, personal data, or any sensitive information.

Non-Latin unchanged

ROT13 only affects A-Z and a-z. Cyrillic, Greek, CJK, emoji, and accented letters pass through unchanged. For full-text obfuscation of mixed-script content, use a different cipher.

Confusing with Caesar cipher

Caesar cipher is any fixed shift (3, 5, 7, etc.); ROT13 is the specific Caesar cipher with shift 13. All ROT13 is Caesar, but not all Caesar is ROT13.

Accidental double application

Since ROT13 is self-inverse, applying it twice returns the original. If you accidentally apply it twice thinking you needed to decode, you get the plaintext — which in obfuscation contexts may not be what you want.

Case inconsistency in some tools

Some poor implementations break case (uppercase goes to lowercase or vice versa). This tool preserves case strictly. If output case looks wrong, check the input.

Word breaks

ROT13 preserves spaces and punctuation, so word structure is obvious. Obfuscation is shallow — if someone can tell the length of words, they can often guess content.

ROT47 produces unreadable characters

Unlike ROT13 which keeps output readable as English, ROT47 produces punctuation-heavy output. Fine for hiding, but harder to type or share manually.

ROT13 Encoder/Decoder — comparisons and alternatives

Compared to serious encryption (AES, RSA), ROT13 is trivially broken and should never be used for security. For actual security, use modern cryptographic libraries; ROT13 is for casual obfuscation only.

Compared to other simple ciphers (Atbash, Vigenère), ROT13 is the simplest — just a rotation by a fixed amount. Atbash reverses the alphabet (A\u2194Z); Vigenère uses a key to shift by variable amounts. ROT13 is the most basic of the family.

Compared to Base64 encoding, ROT13 is for obfuscation while Base64 is for transport (representing binary as ASCII). They serve different purposes and both are easily reversed.

Frequently asked questions about the ROT13 Encoder/Decoder

What is ROT13?

A simple cipher that rotates each letter 13 positions in the alphabet. A becomes N, B becomes O, and so on. Because 13 is half of 26, rotating twice returns the original text, making encode and decode the same operation.

Is ROT13 secure?

No. ROT13 is trivially broken — anyone can decode it in seconds by hand or with any ROT13 tool. It is obfuscation, not encryption. Never use it for sensitive data. Use AES or another proper cipher for real security.

Why is ROT13 the same for encode and decode?

Because the alphabet has 26 letters and 13 is exactly half. Rotating 13 positions and then 13 more positions equals 26 positions, which is a full rotation back to the start. This self-inverse property is unique to ROT13 among Caesar ciphers.

What is ROT47?

Similar to ROT13 but covers 94 printable ASCII characters (codes 33-126, which includes punctuation and digits) with a shift of 47. Since 47 is half of 94, ROT47 is also self-inverse. Output looks noisier because punctuation rotates too.

Can I use ROT13 for other languages?

The classic ROT13 only affects A-Z and a-z, so non-Latin alphabets pass through unchanged. For Cyrillic, Greek, or other scripts, use a custom Caesar cipher with a shift appropriate for that script’s letter count.

What is the history of ROT13?

Descended from Caesar cipher (first century BC). ROT13 specifically appeared in early 1980s Usenet newsgroups as a casual way to obfuscate spoilers and offensive jokes. Still used today in the same spirit — not for security, just for "choose to decode".

Why use ROT5 or ROT18?

ROT13 only shifts letters. For text that includes important digits (order numbers, dates, IDs), ROT13 leaves them readable. ROT5 rotates digits; ROT18 combines ROT13 and ROT5 to shift both in one pass.

Is ROT13 the same as a Caesar cipher?

ROT13 is one specific Caesar cipher — the one with shift 13. Caesar cipher is the general concept of shifting letters by a fixed amount. Other Caesar ciphers (shift 3, 5, 7) are not self-inverse the way ROT13 is.

Additional resources

Advertisement

Related tools

All Encoding Tools

Explore more tools

200+ free tools that run in your browser.

Browse all tools →