Skip to content
Convert Filez
Security And EncodingRuns in your browser6 min readUpdated July 28, 2026

ROT13 Encoder Decoder

This rot13 encoder decoder rotates every letter in your text by 13 places through the alphabet, entirely inside your browser tab. Type or paste in a block of text, press the button, and the result appears immediately with nothing ever leaving your device. Because the Latin alphabet has exactly 26 letters, rotating by 13 twice returns you to the original text, so encoding and decoding are the same operation performed on the same button.

Loading the tool interface
Files never leave your deviceNo upload wait and no queueNo signup, watermark or file limit

State this plainly before anything else: ROT13 is obfuscation, not encryption. It has no key, no secret and no security property whatsoever. Anyone who recognises the pattern, or who simply runs the same rotation again, recovers the original text in a fraction of a second. Treat it the way it has always been used online, as a lightweight way to hide a punchline, a spoiler or an answer from a casual glance, never as a way to protect anything that actually matters.

The one genuinely useful property ROT13 has is that it is its own inverse. A rot13 cipher applied twice in a row produces the exact input you started with, which is why old Usenet clients and modern text editors alike could offer a single ROT13 command instead of separate encode and decode functions. This tool keeps that same behaviour: switch between encode and decode purely for clarity of intent, since both buttons run the identical transformation underneath.

When people actually use a rot13 cipher

ROT13 dates back to early Usenet newsgroups, where posters used it to hide spoilers for a film, the punchline of a joke, or the answer to a puzzle from anyone scrolling past who had not asked to see it yet. The convention persists today in the same narrow role: it signals to a reader that the concealment is a courtesy, not a security measure, and that they are free to decode it the moment they want to see the content.

Programmers occasionally use it for a different reason entirely, to store a piece of text such as a test fixture or a placeholder string in a form that will not trigger a spam filter, a profanity filter or a search index match on the raw substring. Reversing it in code takes one line, since the same rotation function handles both directions.

  • Hide a spoiler, quiz answer or joke punchline from a casual reader without deleting it.
  • Store placeholder or test text in a form that will not match a plain text search for the original string.
  • Demonstrate a simple substitution cipher for teaching, since the fixed 13 character shift is easy to explain by hand.
  • Never use ROT13 to protect a password, a personal message or anything where confidentiality actually matters.

Why ROT13 is obfuscation, not encryption

Real encryption depends on a secret, typically a key, that an attacker does not have. Without that key, recovering the original message should be computationally infeasible even when the attacker knows exactly which algorithm was used. ROT13 has none of that. The rotation amount is fixed at 13 and is public knowledge, so there is nothing to keep secret in the first place and nothing an attacker needs to guess.

This means a rot13 cipher provides precisely zero confidentiality against anyone who bothers to look. A human reader can decode short ROT13 text in their head once they recognise the pattern, and a machine can decode any amount of it instantly with the same one line of code used to encode it. If you need to keep information from a specific person or system, use a real cipher with an actual secret key, not a fixed alphabet rotation.

Shift by 13, wrap at 26: this rot13 encoder decoder needs nothing else

Each letter in the alphabet is assigned a position from 0 to 25. To encode rot13 text, this rot13 encoder decoder adds 13 to each letter's position and wraps back to the start of the alphabet if the result goes past 25, so A becomes N, B becomes O, and so on through the alphabet, while every non letter character, including digits, spaces and punctuation, passes through completely unchanged.

Because the alphabet has 26 letters and 13 is exactly half of 26, applying the same shift a second time lands you back on the original letter every single time. That symmetry is the entire reason ROT13 needs only one transformation function rather than a separate pair for encoding and decoding, and it is also why the tool below lets you flip between encode and decode purely as a label, since the underlying computation is identical either way.

Case is preserved throughout. An uppercase letter rotates to another uppercase letter and a lowercase letter rotates to another lowercase letter, so capitalisation in the original text, including acronyms and sentence starts, survives the round trip intact.

ROT13 compared with a general Caesar cipher

ROT13 is technically a special case of the much older Caesar cipher, which shifts letters by any amount from 1 to 25 rather than being locked to 13. The 13 shift is popular specifically because it is self inverse on a 26 letter alphabet, which no other shift amount achieves except a shift of zero, which does nothing at all.

If you need a shift other than 13, for instance to recreate a historical Caesar cipher example or to experiment with cryptanalysis techniques such as frequency analysis, a dedicated Caesar cipher tool with an adjustable shift amount is the better fit, since this page is deliberately fixed to the classic rot13 cipher rotation.

ROT13 compared with a general Caesar cipher and real encryption
PropertyROT13Caesar cipherAES encryption
Shift amountFixed at 13Any value 1 to 25Not applicable
Uses a secret keyNoNoYes
Self inverseYesOnly when shift is 13No
Suitable for confidentialityNoNoYes

How to use this rot13 encoder decoder

  1. 1

    Paste your text

    Type or paste the text you want to transform into the input box. Nothing is sent anywhere.

  2. 2

    Press the ROT13 button

    Run the rotation. Because ROT13 is its own inverse, the same button both encodes and decodes.

  3. 3

    Copy or download the result

    Copy the rotated text to your clipboard, or download it as a plain text file.

  4. 4

    Run it again to reverse

    Paste the rotated output back in and run it once more to recover your original text exactly.

Related tools worth bookmarking

Sources and further reading

Frequently asked questions

Common questions about the rot13 encoder decoder.

No. ROT13 has no key and no secret of any kind, since the 13 character shift is fixed and publicly known. It provides obfuscation at best, meaning it hides text from a casual glance, not encryption, which is meant to withstand a deliberate attempt to recover the original content.

Because the alphabet has 26 letters and 13 is exactly half of that, shifting a letter by 13 twice returns it to its starting position. That makes the rot13 cipher its own mathematical inverse, so a single rotation function handles both directions and there is no separate decode algorithm to write.

No. The rotation adds 13 to each letter's character code and wraps the result with modulo 26 arithmetic, entirely on a string already loaded into the page. That single function has nothing resembling a network call inside it, so a punchline or spoiler you rotate here has no way to travel anywhere beyond the tab it was typed into.

They pass through completely unchanged. Only the 26 letters of the Latin alphabet, uppercase and lowercase, are rotated. Digits, spaces, punctuation marks and any accented or non Latin characters are left exactly as they appear in the original text.

Not on this page, since it is dedicated specifically to the fixed 13 character rot13 cipher rotation. Use the Caesar cipher tool instead if you want an adjustable shift amount from 1 to 25, which covers ROT13 as one specific case among many.

No. Reversing a rot13 cipher takes one line of code or a few seconds of manual effort once someone recognises the pattern. Use it only for the traditional purpose of hiding spoilers, punchlines or puzzle answers from a casual reader, and use a real encryption algorithm with a secret key for anything that actually needs to stay private.

Not in the result. Any correct rot13 decoder online will produce identical output for the same input, since the algorithm is a fixed, publicly documented 13 character rotation with no variation between implementations. The difference this rot13 encoder decoder offers is that the rotation runs locally in your browser rather than on a server you have to trust with your text.

Keep going

More security and encoding

View the full category