# ROT13 and Caesar cipher

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

- Endpoint: `POST https://setget.net/v1/tools/rot13` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `rot13`
- Page: https://setget.net/tools/rot13

## Inputs

- `text` (required, string): The text to shift.
- `shift` (optional, integer, default `13`, range -1000..1000): Places to move each letter along the alphabet. 13 is ROT13. Use a negative number to undo a shift.
- `rot47` (optional, boolean, default `false`): Use ROT47, which also rotates digits and punctuation. The shift is ignored.

## Example 1

```json
{"input":{"text":"Hello, World!"}}
```

Result:

```json
{"text":"Uryyb, Jbeyq!"}
```

## Example 2: A Caesar shift of 3

```json
{"input":{"text":"Attack at dawn","shift":3}}
```

Result:

```json
{"text":"Dwwdfn dw gdzq"}
```

## Example 3: ROT47

```json
{"input":{"text":"Hello, World!","rot47":true}}
```

Result:

```json
{"text":"w6==@[ (@C=5P"}
```

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