ROT13 Translator

Type or paste a line and copy it in ROT13; the same box decodes, since the code undoes itself.

Sample below. Your text takes its place.

Direction: Plain text to ROT13

Sample ROT13: letters

Gur nafjre vf 12

Same text, other sets

  • ROT18: letters and digits Gur nafjre vf 67
  • ROT47: every keyboard character %96 2?DH6C :D `a

More options

Letter for letter: a is n and n is a, so the same box codes and decodes. ROT13 leaves digits and punctuation as typed, ROT18 turns the digits too, and ROT47 turns every keyboard character. None of them keeps a secret.

All 156 pairs

ROT13: small letters 26

  • a becomes n Letter 1 becomes letter 14, and back again.
  • b becomes o Letter 2 becomes letter 15, and back again.
  • c becomes p Letter 3 becomes letter 16, and back again.
  • d becomes q Letter 4 becomes letter 17, and back again.
  • e becomes r Letter 5 becomes letter 18, and back again.
  • f becomes s Letter 6 becomes letter 19, and back again. Written for "f".
  • g becomes t Letter 7 becomes letter 20, and back again.
  • h becomes u Letter 8 becomes letter 21, and back again. Written for "h".
  • i becomes v Letter 9 becomes letter 22, and back again.
  • j becomes w Letter 10 becomes letter 23, and back again. Written for "j".
  • k becomes x Letter 11 becomes letter 24, and back again.
  • l becomes y Letter 12 becomes letter 25, and back again.
  • m becomes z Letter 13 becomes letter 26, and back again.
  • n becomes a Letter 14 becomes letter 1, and back again.
  • o becomes b Letter 15 becomes letter 2, and back again.
  • p becomes c Letter 16 becomes letter 3, and back again. Written for "p".
Show all 156 pairs (140 more)

ROT13: small letters, continued

  • q becomes d Letter 17 becomes letter 4, and back again. Written for "q".
  • r becomes e Letter 18 becomes letter 5, and back again.
  • s becomes f Letter 19 becomes letter 6, and back again.
  • t becomes g Letter 20 becomes letter 7, and back again.
  • u becomes h Letter 21 becomes letter 8, and back again. Written for "u".
  • v becomes i Letter 22 becomes letter 9, and back again. Written for "v".
  • w becomes j Letter 23 becomes letter 10, and back again. Written for "w".
  • x becomes k Letter 24 becomes letter 11, and back again. Written for "x".
  • y becomes l Letter 25 becomes letter 12, and back again. Written for "y".
  • z becomes m Letter 26 becomes letter 13, and back again. Written for "z".

ROT13: capitals 26

  • Capital A becomes capital N Letter 1 becomes letter 14, and back again.
  • Capital B becomes capital O Letter 2 becomes letter 15, and back again.
  • Capital C becomes capital P Letter 3 becomes letter 16, and back again.
  • Capital D becomes capital Q Letter 4 becomes letter 17, and back again.
  • Capital E becomes capital R Letter 5 becomes letter 18, and back again.
  • Capital F becomes capital S Letter 6 becomes letter 19, and back again. Written for "F".
  • Capital G becomes capital T Letter 7 becomes letter 20, and back again.
  • Capital H becomes capital U Letter 8 becomes letter 21, and back again. Written for "H".
  • Capital I becomes capital V Letter 9 becomes letter 22, and back again.
  • Capital J becomes capital W Letter 10 becomes letter 23, and back again. Written for "J".
  • Capital K becomes capital X Letter 11 becomes letter 24, and back again.
  • Capital L becomes capital Y Letter 12 becomes letter 25, and back again.
  • Capital M becomes capital Z Letter 13 becomes letter 26, and back again.
  • Capital N becomes capital A Letter 14 becomes letter 1, and back again.
  • Capital O becomes capital B Letter 15 becomes letter 2, and back again.
  • Capital P becomes capital C Letter 16 becomes letter 3, and back again. Written for "P".
  • Capital Q becomes capital D Letter 17 becomes letter 4, and back again. Written for "Q".
  • Capital R becomes capital E Letter 18 becomes letter 5, and back again.
  • Capital S becomes capital F Letter 19 becomes letter 6, and back again.
  • Capital T becomes capital G Letter 20 becomes letter 7, and back again.
  • Capital U becomes capital H Letter 21 becomes letter 8, and back again. Written for "U".
  • Capital V becomes capital I Letter 22 becomes letter 9, and back again. Written for "V".
  • Capital W becomes capital J Letter 23 becomes letter 10, and back again. Written for "W".
  • Capital X becomes capital K Letter 24 becomes letter 11, and back again. Written for "X".
  • Capital Y becomes capital L Letter 25 becomes letter 12, and back again. Written for "Y".
  • Capital Z becomes capital M Letter 26 becomes letter 13, and back again. Written for "Z".

ROT5: the digits (with ROT13 it makes ROT18) 10

  • 0 becomes 5 in ROT5 The digits 0 and 5 trade places.
  • 1 becomes 6 in ROT5 The digits 1 and 6 trade places.
  • 2 becomes 7 in ROT5 The digits 2 and 7 trade places.
  • 3 becomes 8 in ROT5 The digits 3 and 8 trade places.
  • 4 becomes 9 in ROT5 The digits 4 and 9 trade places.
  • 5 becomes 0 in ROT5 The digits 0 and 5 trade places.
  • 6 becomes 1 in ROT5 The digits 1 and 6 trade places.
  • 7 becomes 2 in ROT5 The digits 2 and 7 trade places.
  • 8 becomes 3 in ROT5 The digits 3 and 8 trade places.
  • 9 becomes 4 in ROT5 The digits 4 and 9 trade places.

ROT47: every printing keyboard character 94

  • 0 becomes _ in ROT47 The digit 0, ASCII 48, becomes the underscore, ASCII 95.
  • 1 becomes ` in ROT47 The digit 1, ASCII 49, becomes the backtick, ASCII 96.
  • 2 becomes a in ROT47 The digit 2, ASCII 50, becomes small a, ASCII 97.
  • 3 becomes b in ROT47 The digit 3, ASCII 51, becomes small b, ASCII 98.
  • 4 becomes c in ROT47 The digit 4, ASCII 52, becomes small c, ASCII 99.
  • 5 becomes d in ROT47 The digit 5, ASCII 53, becomes small d, ASCII 100.
  • 6 becomes e in ROT47 The digit 6, ASCII 54, becomes small e, ASCII 101.
  • 7 becomes f in ROT47 The digit 7, ASCII 55, becomes small f, ASCII 102.
  • 8 becomes g in ROT47 The digit 8, ASCII 56, becomes small g, ASCII 103.
  • 9 becomes h in ROT47 The digit 9, ASCII 57, becomes small h, ASCII 104.
  • a becomes 2 in ROT47 Small a, ASCII 97, becomes the digit 2, ASCII 50.
  • A becomes p in ROT47 Capital A, ASCII 65, becomes small p, ASCII 112.
  • b becomes 3 in ROT47 Small b, ASCII 98, becomes the digit 3, ASCII 51.
  • B becomes q in ROT47 Capital B, ASCII 66, becomes small q, ASCII 113.
  • [ becomes , in ROT47 The opening square bracket, ASCII 91, becomes the comma, ASCII 44. Written for "[".
  • \ becomes - in ROT47 The backslash, ASCII 92, becomes the hyphen, ASCII 45. Written for "\".
  • ] becomes . in ROT47 The closing square bracket, ASCII 93, becomes the period, ASCII 46. Written for "]".
  • ^ becomes / in ROT47 The caret, ASCII 94, becomes the slash, ASCII 47. Written for "^".
  • _ becomes 0 in ROT47 The underscore, ASCII 95, becomes the digit 0, ASCII 48. Written for "_".
  • ` becomes 1 in ROT47 The backtick, ASCII 96, becomes the digit 1, ASCII 49. Written for "`".
  • , becomes [ in ROT47 The comma, ASCII 44, becomes the opening square bracket, ASCII 91.
  • - becomes \ in ROT47 The hyphen, ASCII 45, becomes the backslash, ASCII 92. Written for "-".
  • . becomes ] in ROT47 The period, ASCII 46, becomes the closing square bracket, ASCII 93.
  • / becomes ^ in ROT47 The slash, ASCII 47, becomes the caret, ASCII 94. Written for "/".
  • : becomes i in ROT47 The colon, ASCII 58, becomes small i, ASCII 105. Written for ":".
  • ; becomes j in ROT47 The semicolon, ASCII 59, becomes small j, ASCII 106. Written for ";".
  • < becomes k in ROT47 The less-than sign, ASCII 60, becomes small k, ASCII 107. Written for "<".
  • = becomes l in ROT47 The equals sign, ASCII 61, becomes small l, ASCII 108. Written for "=".
  • { becomes L in ROT47 The opening brace, ASCII 123, becomes capital L, ASCII 76. Written for "{".
  • > becomes m in ROT47 The greater-than sign, ASCII 62, becomes small m, ASCII 109. Written for ">".
  • | becomes M in ROT47 The vertical bar, ASCII 124, becomes capital M, ASCII 77. Written for "|".
  • ? becomes n in ROT47 The question mark, ASCII 63, becomes small n, ASCII 110. Written for "?".
  • } becomes N in ROT47 The closing brace, ASCII 125, becomes capital N, ASCII 78. Written for "}".
  • @ becomes o in ROT47 The at sign, ASCII 64, becomes small o, ASCII 111. Written for "@".
  • ~ becomes O in ROT47 The tilde, ASCII 126, becomes capital O, ASCII 79. Written for "~".
  • ! becomes P in ROT47 The exclamation mark, ASCII 33, becomes capital P, ASCII 80. Written for "!".
  • " becomes Q in ROT47 The double quote, ASCII 34, becomes capital Q, ASCII 81. Written for """.
  • # becomes R in ROT47 The number sign, ASCII 35, becomes capital R, ASCII 82. Written for "#".
  • $ becomes S in ROT47 The dollar sign, ASCII 36, becomes capital S, ASCII 83. Written for "$".
  • % becomes T in ROT47 The percent sign, ASCII 37, becomes capital T, ASCII 84. Written for "%".
  • & becomes U in ROT47 The ampersand, ASCII 38, becomes capital U, ASCII 85. Written for "&".
  • ' becomes V in ROT47 The apostrophe, ASCII 39, becomes capital V, ASCII 86. Written for "'".
  • ( becomes W in ROT47 The opening parenthesis, ASCII 40, becomes capital W, ASCII 87. Written for "(".
  • ) becomes X in ROT47 The closing parenthesis, ASCII 41, becomes capital X, ASCII 88. Written for ")".
  • * becomes Y in ROT47 The asterisk, ASCII 42, becomes capital Y, ASCII 89. Written for "*".
  • + becomes Z in ROT47 The plus sign, ASCII 43, becomes capital Z, ASCII 90. Written for "+".
  • c becomes 4 in ROT47 Small c, ASCII 99, becomes the digit 4, ASCII 52.
  • C becomes r in ROT47 Capital C, ASCII 67, becomes small r, ASCII 114.
  • d becomes 5 in ROT47 Small d, ASCII 100, becomes the digit 5, ASCII 53.
  • D becomes s in ROT47 Capital D, ASCII 68, becomes small s, ASCII 115.
  • e becomes 6 in ROT47 Small e, ASCII 101, becomes the digit 6, ASCII 54.
  • E becomes t in ROT47 Capital E, ASCII 69, becomes small t, ASCII 116.
  • f becomes 7 in ROT47 Small f, ASCII 102, becomes the digit 7, ASCII 55.
  • F becomes u in ROT47 Capital F, ASCII 70, becomes small u, ASCII 117.
  • g becomes 8 in ROT47 Small g, ASCII 103, becomes the digit 8, ASCII 56.
  • G becomes v in ROT47 Capital G, ASCII 71, becomes small v, ASCII 118.
  • h becomes 9 in ROT47 Small h, ASCII 104, becomes the digit 9, ASCII 57.
  • H becomes w in ROT47 Capital H, ASCII 72, becomes small w, ASCII 119.
  • i becomes : in ROT47 Small i, ASCII 105, becomes the colon, ASCII 58.
  • I becomes x in ROT47 Capital I, ASCII 73, becomes small x, ASCII 120.
  • j becomes ; in ROT47 Small j, ASCII 106, becomes the semicolon, ASCII 59.
  • J becomes y in ROT47 Capital J, ASCII 74, becomes small y, ASCII 121.
  • k becomes < in ROT47 Small k, ASCII 107, becomes the less-than sign, ASCII 60.
  • K becomes z in ROT47 Capital K, ASCII 75, becomes small z, ASCII 122.
  • l becomes = in ROT47 Small l, ASCII 108, becomes the equals sign, ASCII 61.
  • L becomes { in ROT47 Capital L, ASCII 76, becomes the opening brace, ASCII 123.
  • m becomes > in ROT47 Small m, ASCII 109, becomes the greater-than sign, ASCII 62.
  • M becomes | in ROT47 Capital M, ASCII 77, becomes the vertical bar, ASCII 124.
  • n becomes ? in ROT47 Small n, ASCII 110, becomes the question mark, ASCII 63.
  • N becomes } in ROT47 Capital N, ASCII 78, becomes the closing brace, ASCII 125.
  • o becomes @ in ROT47 Small o, ASCII 111, becomes the at sign, ASCII 64.
  • O becomes ~ in ROT47 Capital O, ASCII 79, becomes the tilde, ASCII 126.
  • P becomes ! in ROT47 Capital P, ASCII 80, becomes the exclamation mark, ASCII 33.
  • p becomes A in ROT47 Small p, ASCII 112, becomes capital A, ASCII 65.
  • Q becomes " in ROT47 Capital Q, ASCII 81, becomes the double quote, ASCII 34.
  • q becomes B in ROT47 Small q, ASCII 113, becomes capital B, ASCII 66.
  • R becomes # in ROT47 Capital R, ASCII 82, becomes the number sign, ASCII 35.
  • r becomes C in ROT47 Small r, ASCII 114, becomes capital C, ASCII 67.
  • S becomes $ in ROT47 Capital S, ASCII 83, becomes the dollar sign, ASCII 36.
  • s becomes D in ROT47 Small s, ASCII 115, becomes capital D, ASCII 68.
  • T becomes % in ROT47 Capital T, ASCII 84, becomes the percent sign, ASCII 37.
  • t becomes E in ROT47 Small t, ASCII 116, becomes capital E, ASCII 69.
  • U becomes & in ROT47 Capital U, ASCII 85, becomes the ampersand, ASCII 38.
  • u becomes F in ROT47 Small u, ASCII 117, becomes capital F, ASCII 70.
  • V becomes ' in ROT47 Capital V, ASCII 86, becomes the apostrophe, ASCII 39.
  • v becomes G in ROT47 Small v, ASCII 118, becomes capital G, ASCII 71.
  • W becomes ( in ROT47 Capital W, ASCII 87, becomes the opening parenthesis, ASCII 40.
  • w becomes H in ROT47 Small w, ASCII 119, becomes capital H, ASCII 72.
  • X becomes ) in ROT47 Capital X, ASCII 88, becomes the closing parenthesis, ASCII 41.
  • x becomes I in ROT47 Small x, ASCII 120, becomes capital I, ASCII 73.
  • Y becomes * in ROT47 Capital Y, ASCII 89, becomes the asterisk, ASCII 42.
  • y becomes J in ROT47 Small y, ASCII 121, becomes capital J, ASCII 74.
  • Z becomes + in ROT47 Capital Z, ASCII 90, becomes the plus sign, ASCII 43.
  • z becomes K in ROT47 Small z, ASCII 122, becomes capital K, ASCII 75.

How this list was compiled: Own work: the three tables follow from arithmetic and nothing else. ROT13 moves each of the 26 letters 13 places along the alphabet, ROT5 moves each digit 5 places, and ROT47 moves each of the 94 printing ASCII characters from ! (33) to ~ (126) 47 places, each wrapping around. Every one of the 156 rows undoes itself, and the sample was run through the page's own tool, there and back. The names ROT5, ROT18 (ROT13 and ROT5 used together) and ROT47, the range and the count of ROT47, and the history line are as recorded in https://en.wikipedia.org/wiki/ROT13, read on 2026-10-01. Licence: own work (the names and the history line from Wikipedia, CC BY-SA 4.0, restated in this site's own words)

How it works

This ROT13 translator swaps each letter for the one 13 places along the alphabet, so a becomes n and n becomes a. Run a line through twice and the plain text is back.

Read the full guide

One box, both directions

Type plain text and copy the code, or paste coded text and read it. The alphabet has 26 letters, so 13 places twice is a full turn. Capitals stay capitals, and digits, spaces and punctuation stay as typed.

The two rows underneath

ROT5 does the same to digits: 0 trades places with 5, and 1 with 6. Used together with ROT13 it is sometimes called ROT18. ROT47 turns all 94 printing keyboard characters, from ! to ~, by 47 places, so letters come out as digits and signs.

  • A space is never changed by any of the three, so words stay apart.
  • ROT13 keeps word lengths and capitals, so coded text still has the shape of a sentence.

Questions and answers

How do I decode ROT13?

Paste the coded text in the box. Decoding is the same step as coding, because every letter moves 13 of 26 places. Gur nafjre comes back as The answer.

Is ROT13 a Caesar cipher?

Yes. Wikipedia describes it as a special case of the Caesar cipher: the shift of 13, the one shift that undoes itself. For any other shift there is a cipher wheel to print.

What is ROT13 used for?

Hiding a line from a glance, not from a reader who wants it. Wikipedia records that people used it on newsgroups in the early 1980s to obscure the answer to a puzzle or a spoiler. It has no key.

What is the difference between ROT13 and ROT47?

ROT13 moves only the 26 letters. ROT47 moves the 94 printing characters from ! to ~ by 47 places, so capital A becomes p, small a becomes 2, and digits and punctuation change too.