ROT13 and Caesar cipher

Apply ROT13, a Caesar shift of any size, or ROT47 to text. Run it again to decode.

Input

The text to shift.
Places to move each letter along the alphabet. 13 is ROT13. Use a negative number to undo a shift.
Use ROT47, which also rotates digits and punctuation. The shift is ignored.

Result

Fill in the input and press Run.

Your input is processed in memory and then discarded. It is not stored or logged. Even so, don't paste live passwords or keys into any online tool.

Use it from code or an agent

curl -s https://setget.net/v1/tools/rot13 \
  -H 'Content-Type: application/json' \
  -d '{"input":{"text":"Hello, World!"}}'
import json, urllib.request

body = {'input': {'text': 'Hello, World!'}}
request = urllib.request.Request("https://setget.net/v1/tools/rot13", json.dumps(body).encode(),
                                 {"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/rot13", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"input":{"text":"Hello, World!"}}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
  "slug": "rot13",
  "input": {
    "text": "Hello, World!"
  }
}
{
  "input": {
    "text": "Hello, World!"
  }
}

Endpoint: POST /v1/tools/rot13. Over MCP: run_tool with slug: "rot13". Machine-readable: input schema, Markdown. Connect an agent.

Inputs

NameTypeRequiredWhat it does
text string yes The text to shift.
shift integer no Places to move each letter along the alphabet. 13 is ROT13. Use a negative number to undo a shift. Default: 13. From -1000 to 1000.
rot47 boolean no Use ROT47, which also rotates digits and punctuation. The shift is ignored. Default: false.

Examples

Input
{
  "text": "Hello, World!"
}
Result
{
  "text": "Uryyb, Jbeyq!"
}

A Caesar shift of 3

Input
{
  "text": "Attack at dawn",
  "shift": 3
}
Result
{
  "text": "Dwwdfn dw gdzq"
}

ROT47

Input
{
  "text": "Hello, World!",
  "rot47": true
}
Result
{
  "text": "w6==@[ (@C=5P"
}

Questions

Is ROT13 secure?
No. It is a puzzle and spoiler-hiding trick, not encryption. Anyone can undo it instantly.
How do I decode?
ROT13 and ROT47 undo themselves: run the result through again. For another shift, use the same number with a minus sign.
What happens to accented letters?
Only the letters A-Z and a-z move. Everything else, including accented letters, is left as it is.