ROT13 encoder and decoder
Encode or decode ROT13 text by shifting each English letter 13 places while keeping its case.
Only A-Z and a-z change. Limit: 100,000 UTF-16 code units; most emoji count as two. Press Ctrl+Enter or Command+Enter to transform.
Ready to transform.
The same operation encodes and decodes. Use the result as input, then transform again to restore the text.
How ROT13 works
ROT13 rotates the 26-letter ASCII alphabet halfway around: A becomes N, N becomes A, and lowercase letters follow the same rule. Two passes restore the original text because two shifts of 13 make a full rotation.
Numbers, punctuation, spaces, tabs, emoji, accented letters, and other scripts remain unchanged. No case folding or Unicode normalization occurs. In a decomposed character such as an ASCII letter followed by a combining accent, the letter changes and the accent stays in place. Browser textareas normalize pasted CR and CRLF line endings to LF; the transform preserves those LF line breaks.
Limits and security
ROT13 is an educational classical cipher used for puzzles and hiding spoilers. It has no secret key and is unsuitable for protecting sensitive information. This tool supports fixed ROT13 only; digits are unchanged. Text is processed in this page without being sent by the tool or saved between visits.
Input and output have the same UTF-16 length, with a maximum of 100,000 code units. The letter mapping agrees with the Python ROT13 reference implementation.