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.

Last updated:

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).

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

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.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Word CounterCount words and characters and clean up text.Character CounterCount characters with and without spaces, words, lines and bytes, with live limit bars.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Grammar CheckerCheck grammar, spelling and punctuation with clickable suggestions and one-click fixes.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.Fraction SymbolsCopy fraction symbols ½ ¼ ¾ ⅓ ⅛ or build any fraction like ¹⁵⁄₁₆ with superscript digits.GC Content CalculatorDNA/RNA GC %, AT %, base counts, GC skew and a sliding-window GC plot from any sequence or FASTA.Goodwill Letter GeneratorWrite a goodwill letter asking a creditor to remove a late payment from your credit report.Google Ads Character CounterWrite responsive search ads with live 30/90/15 counters, pins, keyword insertion checks and a preview.Gratitude JournalWrite three things you're grateful for each day, keep a streak and search past entries, privately.Recipe Shopping List GeneratorPaste several recipes and get one combined grocery list with merged amounts, by store section.Group Chat Name GeneratorFunny, cute and clever group chat names for family, friends, work and teams, with emoji.Happy Birthday in Different LanguagesSay “Happy birthday” in 115 languages with native script, romanization and audio.Heart SymbolsCopy and paste heart symbols ♥ ❤ ♡ ❥ 💕 and decorative hearts with Alt, Unicode and HTML codes.I Love You in Different LanguagesSay “I love you” in 129 languages with native script, pronunciation guide and audio.IPA KeyboardType International Phonetic Alphabet symbols online with clickable charts and = shortcuts.Journal Prompts GeneratorGet random journaling prompts for self-discovery, gratitude, goals or calm, and save favorites.Text Memorization ToolMemorize speeches, poems and verses by hiding words, using first letters and testing recall.Mnemonic GeneratorTurn a list of terms into a memorable first-letter sentence, acrostic or acronym.Your Name in JapaneseWrite your name in Japanese katakana with romaji reading, spelling options and a name card.One Word Per LineSplit any text into a list with one word per line; strip punctuation, dedupe, lowercase and sort.ORF FinderFind open reading frames in all 6 frames of a DNA sequence, with positions, lengths and protein translations.Invitation Wording GeneratorTurn your event details into polished invitation wording for birthdays, showers, weddings and more.Pigpen Cipher TranslatorTurn text into pigpen cipher symbols, download a PNG, print it, or decode with a symbol keyboard.Playlist Name GeneratorAesthetic, funny and simple playlist names by mood, genre and occasion, with emoji.Podcast Episode Title GeneratorEpisode title ideas from your topic and guest, using proven formulas and your numbering style.Podcast Interview Questions GeneratorBuild a podcast interview plan by guest type and topic, from icebreakers to deep-dive questions.Podcast Intro Script GeneratorWrite podcast intro and outro scripts in five tones, with sponsor, call to action and read time.Podcast Show Notes GeneratorFill in a form and get formatted podcast show notes in Markdown, HTML or plain text.Polybius Square CipherEncode and decode Polybius square coordinates with a standard or keyword 5×5 or 6×6 grid.Price Increase Letter GeneratorWrite a customer price increase notice with effective date, reason, new prices and tone.Protein Molecular Weight CalculatorProtein MW in Da/kDa from an amino acid sequence, plus pI, extinction coefficient and composition.Raise Request Letter GeneratorWrite a letter or email asking for a raise, built on your achievements, market data and target pay.Recipe FormatterPaste a messy recipe and get clean ingredients, numbered steps, scaling and a printable card.Remove Words from TextDelete a list of words or phrases from any text and see how many times each one was removed.
See all 459 Text Tools →