Skip to content
TextLab

Free ROT13 decoder and encoder

ROT13 decoder with all 25 shifts on screen

Paste ROT13 text and it comes back readable; paste readable text and it comes back hidden. One control does both, because moving a letter thirteen places twice returns it to where it started — that is the whole idea, and it is why ROT13 has no separate decode button. It is free, and there is no account to make. Move the slider and you have a Caesar cipher at any shift from 1 to 25, and the panel underneath runs all 25 at once and marks the one that reads as English.

  • 100% free
  • No signup
  • Hides and reveals
  • Any shift 1 to 25
  • All 25 at once
13places round the alphabet0 letters moved · 0 characters in all

This setting is its own undo: press Run the result back through and your original text returns, because a shift of half the alphabet applied twice lands back where it started.

None of this is encryption. There is no key, the method is public, and the panel below breaks any of the 25 shifts in one pass — treat it as a way of covering a spoiler, never as a way of protecting anything that matters.

All 25 shifts at once

First 400 characters · click a row to move the slider there

Paste a scrambled line above and every possible Caesar shift is listed here, with the one that reads most like English marked. It is the fastest way to finish a puzzle when nobody told you the shift.

How to decode ROT13

Paste, set the shift, read — and when nobody told you the shift, the panel at the bottom finds it.

  1. Paste the text, scrambled or plain

    Both go in the same box, because ROT13 does not have an encode side and a decode side — the operation is identical either way. Load something encoded drops in a rotated sentence if you just want to watch it work. Letters move; digits, spaces, punctuation, accented letters and emoji come through untouched, so the shape of a message survives and only the words disappear.

  2. Leave the shift at 13, or move it

    Thirteen is the default because it is the shift that undoes itself, and it is what anyone who says ROT13 means. Drag the slider anywhere from 1 to 25 and you have a plain Caesar cipher at that distance, with a line underneath telling you which shift reverses it. Two other settings sit in the first menu: one also moves digits five places, the pairing usually called ROT18, and one switches to ROT47, which rotates all 94 printable ASCII characters and scrambles punctuation along with the letters.

  3. If you do not know the shift, read it off the list of 25

    The panel at the bottom applies every shift from 1 to 25 at the same time and scores each result against 78 common English words, marking the winner. For an ordinary sentence the answer is unmistakable on sight, and clicking that row moves the slider there so the full text appears in the output box above. This is the part that turns a puzzle into a two-second job, and it is also the clearest possible demonstration of why nobody should hide anything valuable this way.

Technical specifications

What movesThe 26 English letters, with the case preserved; digits, spaces, punctuation, accented letters and emoji are copied through unchanged
Shift range1 to 25 on the slider. Thirteen is the only shift that reverses itself, because 13 + 13 lands back on 26
Digit modeMoves digits five places alongside the letters — the ROT13 and ROT5 pairing usually written ROT18, where 0 becomes 5 and 7 becomes 2
ROT47Rotates all 94 printable ASCII characters by 47, punctuation and brackets included, and is self-reversing for the same reason ROT13 is
Brute-force panelAll 25 shifts computed on the first 400 characters and ranked against 78 everyday English words, with the leader marked
SecurityNone whatsoever. No key exists, the method is public, and the panel on this page defeats it in a single pass
Speed10,000 characters shifted 25 ways in roughly 5 ms, recomputed on every keystroke with no Convert button
Where it runsInside this browser tab. Nothing you paste is sent out, which is the point when the reason for rotating a line is that nobody has read it yet

Frequently asked questions

Is ROT13 secure?

No — it is not encryption, and calling it a cipher is generous. There is no key: knowing the method is knowing the secret, so anyone who recognises rotated text can undo it, and the panel on this page breaks every possible shift at once in a few milliseconds. Even without a tool, ROT13 falls to a glance at letter frequency, since the shape and spacing of the words survive intact. Use it to cover a spoiler that a reader chooses to reveal, never to protect a password, a licence key or anything you would mind a stranger reading.

How do I decode ROT13 text?

Paste it in and read the output — decoding is the same operation as encoding, so there is nothing to switch. That is the whole trick of thirteen: the alphabet has 26 letters, thirteen is exactly half, and moving a letter half a turn twice brings it back to the start. A becomes N and N becomes A. It is the only rotation with that property, which is why ROT13 became the one everybody uses and why every tool that offers it needs only one button.

Why 13 and not some other number?

Because 13 is half of 26, and only half a turn makes the operation its own undo. Any other shift needs its opposite to reverse it — text hidden with ROT7 has to be read with ROT19 — which means two buttons, two commands to remember and one more thing to get wrong. Thirteen removes all of that. The same arithmetic gives ROT47 its shift: there are 94 printable ASCII characters, 47 is half of them, so it undoes itself the same way, and ROT5 does the job for the ten digits.

What happens to numbers, punctuation and accented letters?

Nothing at all on the default setting — only the 26 unaccented English letters move, and everything else is passed through exactly as typed. Capitals stay capital, so Hello becomes Uryyb rather than uryyb. This is deliberate: leaving the punctuation in place is what keeps a rotated sentence recognisable as a sentence. If your text has digits that also need hiding, the second mode shifts them by five, and ROT47 goes further and scrambles brackets, quotes and every other printable ASCII character too, which makes the output look like line noise rather than like a coded message.

Where did ROT13 come from?

From Usenet in the early 1980s, where the newsgroup net.jokes adopted it as a courtesy. Posts with punchlines that would spoil a film, give away a riddle or offend somebody were rotated so that reading them took a deliberate act, and newsreader programs bound the operation to a single keystroke, making it the only cipher in common use with its own keyboard shortcut. The convention spread to spoiler warnings across the early internet and outlasted the newsgroups themselves. It is still doing that job: geocaching.com stores the hint for every cache in ROT13 so that a searcher who wants to keep trying is not spoiled by seeing it.

Is ROT13 the same thing as a Caesar cipher?

Yes — ROT13 is a Caesar cipher with the shift fixed at thirteen. Suetonius describes Julius Caesar using a shift of three in his private letters, writing D where he meant A, and records that Augustus preferred a shift of one and wrote AA when he reached the end of the alphabet. What Caesar had that we do not is an audience that mostly could not read at all, let alone attack a substitution. The method was broken for good in the ninth century, when the Arab polymath al-Kindi described frequency analysis and showed that counting letters undoes any simple substitution.

None of the 25 shifts makes sense. What now?

Then it is not a Caesar cipher, and the list of 25 has just ruled out an entire family in one look. Try the ROT47 setting first, especially if the text is full of punctuation and symbols. If the text is a long run of letters and digits ending in one or two equals signs it is probably Base64 rather than a rotation; if it is pairs of hex digits it is bytes, which the text to hex page will read back. Text where each letter maps to a different letter every time it appears is a Vigenère cipher and needs the keyword, and nothing on this page will get it out.

From Caesar's letters to the Usenet spoiler tag

The idea is older than almost anything else in cryptography. Suetonius, writing around AD 121, describes Julius Caesar protecting his private correspondence by replacing each letter with the one three places further on, so that A was written D — and notes that Augustus used a shift of one instead, writing AA when he ran off the end of what was then a 23-letter Latin alphabet. It worked for a while for an unglamorous reason: most people who intercepted a message could not read it in any form, and nobody had yet written down how to attack a substitution. That ended in ninth-century Baghdad, where al-Kindi set out frequency analysis — count the letters, match the commonest against the commonest letters of the language, and a simple substitution collapses. Every shift cipher has been a puzzle rather than a secret ever since.

ROT13 is that same Caesar shift with the distance pinned at thirteen, and thirteen is the entire reason it survived. Twenty-six letters means half a turn is thirteen, and half a turn applied twice is a full turn, so the operation is its own inverse: one command hides a message and the same command brings it back. Usenet found that useful in the early 1980s, when the newsgroup net.jokes began posting punchlines, film spoilers and off-colour material rotated, so that reading them took a deliberate keypress rather than an accident of scrolling. Newsreaders bound it to a single key, which arguably makes ROT13 the only cipher ever to ship with a keyboard shortcut, and the running joke that you could apply it twice for extra security has outlived the newsgroups. The habit never really stopped — Windows spent years storing the list of programs you had run in the registry with the key names rotated by thirteen, a step that hid nothing from anyone and is still the first thing a forensic examiner undoes.

Today it does the job it was always suited to: a polite curtain rather than a lock. Geocaching hints are stored rotated so a searcher can choose to be told; crossword and puzzle-hunt forums post answers the same way; a spoiler in a review sits behind it. The honest framing is that ROT13 protects a reader from a surprise, never a secret from a reader. Anything that genuinely matters needs a key, and a page with no password box has nothing to build one from. If what you actually want is text that looks scrambled rather than text that hides meaning, reverse text turns a line back to front, and if you want a message a person can send but not read at a glance, the Morse code translator writes it in dots and dashes. When the thing in front of you is pairs of hex digits rather than rotated letters, text to hex reads them back as words.

Spoilers, hints and puzzle answers

Rotating letters happens on your machine, and the text you paste is not sent anywhere at all. That matters more on this page than on most, because the usual reason to rotate something is that you are not ready for other people to read it — an unpublished plot point, a puzzle answer you are checking, a hint you are writing for somebody else. The panel that tries all 25 shifts works on the same local copy rather than on a server, and nothing survives a reload.