Convert · Text tools

ROT13 Encoder

Apply ROT13 to letters A–Z. Run again to decode.

What is ROT13 Encoder?

ROT13 replaces each ASCII letter with the letter 13 positions away in the 26-letter alphabet. Applying the same transformation a second time restores the original ASCII letters.

The tool changes uppercase A–Z and lowercase a–z while preserving their case. Digits, spaces, punctuation, accented letters, emoji, and letters from other scripts remain unchanged. ROT13 is a classic substitution for puzzles and light concealment, not secure encryption.

Why Use This Tool?

ROT13 is useful when a community wants to obscure a punchline, puzzle hint, or spoiler without requiring a password. It is also a straightforward example of a symmetric substitution transform.

  • Encode or decode traditional ROT13 messages.
  • Hide a casual spoiler from immediate view.
  • Check examples of Caesar-style substitution.
  • Transform mixed text while retaining punctuation.

How Does This Tool Work?

The tool searches for ASCII letters only. For each match, it selects the uppercase or lowercase character-code base, converts the letter to a zero-based alphabet position, adds 13, wraps the result modulo 26, and converts it back to a character.

Because 13 is exactly half of 26, the operation is its own inverse. There is no key, random value, password, salt, or secret state.

Understanding Your Results

A transformed message has the same number of UTF-16 code units as the input because each matched ASCII letter is replaced by one ASCII letter and everything else stays in place. Case is retained, but language meaning is not considered.

Non-ASCII letters are not transliterated or rotated. For example, é, ñ, Greek, and Cyrillic characters pass through unchanged even when they have alphabetic meaning.

Why Tracking This Matters

The distinction between encoding, obfuscation, and encryption matters. ROT13 can prevent accidental reading, but it provides no confidentiality or authenticity. Sensitive data requires established, properly implemented cryptography and key management.

Benefits of Using ROT13 Encoder

  • Same action encodes and decodes
  • Preserves ASCII letter case
  • Leaves punctuation and spacing unchanged
  • Immediate deterministic output
  • Useful for puzzles and spoilers
  • Runs locally in the browser

How Is the Result Calculated?

Each ASCII letter position is shifted by 13 with wraparound. Uppercase and lowercase alphabets are handled separately.

output position = (input position + 13) mod 26

Position
A zero-based index from 0 for A/a to 25 for Z/z.
mod 26
Wraps a shifted position back into the alphabet.

Tips for Better Results

  • Run the output through the same tool to decode it.
  • Expect accented and non-Latin letters to remain unchanged.
  • Use ROT13 only for casual concealment.
  • Keep punctuation if it helps the decoded text remain readable.
  • Never treat ROT13 output as protected data.

Conclusion

ROT13 Encoder provides an exact ASCII ROT13 transform for puzzles, spoilers, and demonstrations. Its simplicity is the feature—and the reason it offers no security.

Privacy & how it works

This text tool processes your input in the browser. Your text is not uploaded to The ToolSphere servers for this tool. Privacy Policy.

FAQ

Is ROT13 encryption?expand_more

No. It has no secret key and is trivial to reverse.

How do I decode ROT13?expand_more

Apply ROT13 to the encoded text again.

Does it preserve uppercase letters?expand_more

Yes. Uppercase letters remain uppercase and lowercase remain lowercase.

What happens to numbers and punctuation?expand_more

They are copied without change.

Does ROT13 support accented letters?expand_more

This implementation rotates only ASCII A–Z and a–z.

Why is the same operation used both ways?expand_more

Two shifts of 13 equal a full 26-letter rotation.

Can ROT13 protect a password?expand_more

No. It must never be used as password protection or secure storage.

Does The ToolSphere receive the message?expand_more

No. This transformation runs in your browser.

Is this tool free?expand_more

Yes. No signup and no paywall for core use.

Is my text uploaded?expand_more

No for this tool. Text stays in your browser while you work.

Do I need an account?expand_more

No. Open the page and start typing or pasting.

Suggest an improvement

Tell us what would make this tool more useful. We read every suggestion.

Feedback for: ROT13 Encoder