Home › Text Tools › ROT13 Encoder / Decoder

ROT13 Encoder / Decoder

Type or paste text and see the ROT13 version instantly. ROT13 is its own inverse, so the same box encodes and decodes. Switch to ROT47, ROT5, ROT18 or a custom Caesar shift, and let the tool find the shift of an unknown Caesar message.

0
0
Substitution table
Advertisement
Advertisement

How to use the ROT13 Encoder / Decoder

  1. Pick a cipher: ROT13 (default), ROT47, ROT5, ROT18 or Caesar shift.
  2. Type or paste your text into the input box. The result updates as you type.
  3. To decode ROT13, ROT47, ROT5 or ROT18, just paste the encoded text: these ciphers undo themselves.
  4. For a Caesar cipher, set the shift and choose Encode or Decode. If you do not know the shift, press Find shift to see all 25 options with the best English match first.
  5. Copy or download the result, or press Swap to move it back to the input.

ROT13 alphabet

PlainABCDEFGHIJKLM
ROT13NOPQRSTUVWXYZ

The second half of the alphabet maps back to the first (N→A … Z→M). Example: Hello, World! becomes Uryyb, Jbeyq!, and applying ROT13 to Uryyb, Jbeyq! gives Hello, World! again.

The formulas

  • Caesar / ROTn for letters: encoded = (letter position + n) mod 26, with A = 0. Decoding uses (position − n) mod 26. ROT13 is n = 13, so encoding and decoding are the same.
  • ROT5 for digits: encoded digit = (digit + 5) mod 10.
  • ROT47: for any character with ASCII code c between 33 and 126, encoded = 33 + ((c − 33 + 47) mod 94). Spaces and characters outside that range stay the same.

Where ROT13 is used

ROT13 became popular on Usenet in the 1980s to hide spoilers, punchlines and puzzle answers so readers had to choose to reveal them. It is still used in geocaching hints, forums, programming exercises and puzzle hunts. The Caesar cipher is much older: the Roman historian Suetonius wrote that Julius Caesar used a shift of three letters in private letters.

Frequently asked questions

What is ROT13?

ROT13 (rotate by 13 places) is a simple letter substitution cipher that replaces each letter with the letter 13 positions after it in the alphabet, wrapping around from Z to A. So A becomes N, B becomes O and N becomes A. Numbers and punctuation are not changed.

How do I decode ROT13?

Apply ROT13 again. Because the English alphabet has 26 letters, shifting by 13 twice brings every letter back to where it started. Paste the encoded text into the box and the decoded text appears in the result.

What is the difference between ROT13 and ROT47?

ROT13 only changes the 26 letters. ROT47 rotates all 94 printable ASCII characters from ! to ~ by 47 places, so digits and symbols are scrambled too. Both are their own inverse.

Is ROT13 secure encryption?

No. ROT13 and the Caesar cipher hide text from a casual glance, such as spoilers or puzzle answers, but anyone can reverse them in seconds. Never use them to protect passwords or private data.

How does the Caesar shift finder work?

It decodes the text with all 25 possible shifts and compares the letter frequencies of each result with typical English letter frequencies using a chi-squared score. The shift whose letters look most like English is listed first. It works best with a sentence or more of text.

Does ROT13 work with accented letters or other alphabets?

Classic ROT13 is defined only for the basic Latin letters A to Z. Accented letters, other alphabets, emoji, digits and punctuation pass through unchanged (except digits in ROT5 and ROT18).

Related tools

Reverse Text GeneratorWrite text backwards, reverse words or lines, mirror or flip it upside down.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.Word CounterCount words and characters and clean up text.Character CounterCount characters with and without spaces, words, lines and bytes, with live limit bars.Word Count to PagesHow many pages is 1,000 words? Estimate pages by font, size, spacing and margins.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Citation GeneratorCreate APA, MLA and Chicago citations for books, websites and articles.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Bibliography GeneratorBuild an alphabetized bibliography in APA 7, MLA 9, Chicago or Harvard style.Essay Length & Reading TimeWords to reading time, speaking time and handwritten or typed pages.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Instagram Caption FormatterKeep line breaks and spacing in Instagram captions and bios.Instagram Bio GeneratorCreate Instagram bios with templates, fancy fonts and emojis.X Post Character CounterCount X (Twitter) post characters and split long text into a thread.TikTok Caption CounterCount TikTok caption characters and hashtags against the 2,200 limit.Speech Length CalculatorPaste a speech to see how long it takes to say at any speaking speed.Text to SpeechTurn text into natural-sounding speech.Fancy Text GeneratorTurn text into cool Unicode fonts for bios.Upside Down Text GeneratorFlip text upside down with Unicode characters, or turn it back to normal.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.YouTube Title Length CheckerCheck YouTube title length, preview truncation and score it for clicks.YouTube Description & Chapters GeneratorBuild a YouTube description with chapters, links and hashtags from templates.Text CompareFind the differences between two texts.AI Prompt GeneratorBuild better prompts for ChatGPT, Midjourney and more.Email Signature GeneratorBuild HTML email signatures for Gmail and Outlook.Flashcard MakerMake flashcard decks and study them with flip cards and spaced repetition, saved in your browser.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.YouTube Tag GeneratorGenerate YouTube tag ideas from your title and keywords and fit them in the 500-character limit.Quiz MakerMake a multiple-choice quiz, take it with instant scoring and share it with a link.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.LinkedIn Post FormatterAdd bold, italic and other Unicode styles to LinkedIn posts and preview the fold.Word Frequency CounterFind the most used words and phrases in any text and turn them into a word cloud.Social Media Post PreviewMock up a post for X, Facebook, Instagram, LinkedIn or Threads and save it as a PNG.Sentence CounterCount sentences and paragraphs, see average sentence length and spot long sentences.Emoji CounterCount every emoji in your text, including flags, skin tones and ZWJ sequences.Readability CheckerScore your text with Flesch, Flesch-Kincaid, Gunning Fog, SMOG and more readability tests.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Keyword Density CheckerFind the most used 1, 2 and 3-word phrases in your text and their keyword density %.Title Capitalization ToolCapitalize titles and headlines in AP, APA, Chicago and MLA style side by side, with one-click copy.Accent KeyboardClick to insert é, ñ, ü, ç, ß and other accented letters for 11 languages, then copy.Small Text GeneratorTurn text into tiny superscript, subscript and small caps letters you can copy and paste.Headline AnalyzerScore your headline 0–100 on length, word balance, power words, sentiment and type, with tips.Cyrillic TransliterationConvert Bulgarian, Russian and Ukrainian Cyrillic to Latin and back using official rules.Zalgo Text GeneratorMake creepy glitch text with separate up, middle and down sliders, or clean zalgo back to normal.Arabic KeyboardType Arabic online with a full on-screen keyboard, harakat and Arabic-Indic digits, then copy.Invisible CharacterCopy blank and invisible characters (ㅤ U+3164, U+2800, zero width space) for names and messages.Reading Time CalculatorEstimate how long a text takes to read or speak at any speed, and copy a “5 min read” badge.Russian KeyboardType Russian online with a ЙЦУКЕН or phonetic on-screen keyboard, then copy your Cyrillic text.Emoji PickerSearch 1,900+ emoji by name, pick skin tones and copy and paste them with one click.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Special CharactersCopy and paste 1,500+ symbols: arrows, math, currency, stars, checkmarks, © ® ™ and more.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Word UnscramblerUnscramble letters into every possible word, with blank tiles, length filters and Scrabble scores.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.Palindrome CheckerCheck if a word, sentence or number is a palindrome and find the longest palindrome in text.Syllable CounterCount syllables per word, line and total, and check haiku 5-7-5 instantly.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.NATO Phonetic Alphabet TranslatorSpell any text as Alfa, Bravo, Charlie, hear it spoken, or decode code words back to text.Braille TranslatorTranslate English text to Grade 1 Unicode braille and back, with dot numbers and printing.Text SummarizerSummarize long text into its key sentences and keywords, privately in your browser.Strip HTML TagsRemove HTML tags and get clean plain text with line breaks and decoded entities.Speech to TextDictate with your voice and get editable text in 50+ languages, with voice punctuation.ASCII Art GeneratorTurn text into big ASCII banners or convert any image into ASCII art you can copy.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Bold Text GeneratorConvert text to bold Unicode letters you can copy and paste anywhere.Italic Text GeneratorConvert text to italic Unicode letters you can copy and paste anywhere.Cursive Text GeneratorConvert text to cursive Unicode letters you can copy and paste anywhere.Strikethrough Text GeneratorConvert text to strikethrough Unicode letters you can copy and paste anywhere.Underline Text GeneratorConvert text to underlined Unicode letters you can copy and paste anywhere.Bubble Text GeneratorConvert text to bubble Unicode letters you can copy and paste anywhere.Wide Text GeneratorConvert text to wide Unicode letters you can copy and paste anywhere.Old English Text GeneratorConvert text to Old English Unicode letters you can copy and paste anywhere.Superscript GeneratorConvert text to superscript Unicode letters you can copy and paste anywhere.Subscript GeneratorConvert text to subscript Unicode letters you can copy and paste anywhere.