ROT13 Encoder/Decoder

Encode and decode text using the ROT13 cipher—a classic substitution cipher that shifts letters by 13 positions. Runs entirely in your browser.

0 chars
0 chars

ROT13 Alphabet Mapping

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
A
B
C
D
E
F
G
H
I
J
K
L
M

Classic Letter Substitution

ROT13 is a simple yet legendary cipher used across the internet for hiding spoilers, creating puzzles, and light obfuscation. Originally used in early USENET posts, it remains a fun way to obscure text without real cryptographic security.

Self-Inverse Cipher

Why Use ROT13?

Hide Spoilers

Obscure plot twists, puzzle answers, or game solutions so readers only see them if they choose to decode.

Reversible Instantly

Apply ROT13 once to encode, apply it again to decode. The same operation works both ways—no separate decrypt step.

Customizable Shifts

Use ROT13 or any rotation from ROT1 to ROT25 for Caesar cipher variants used in puzzles and CTF challenges.

100% Client-Side

All encoding and decoding happens in your browser. Your text never leaves your device.

How this ROT13 Encoder/Decoder works

This cipher tool implements ROT13 (rotate by 13 places), a simple letter substitution cipher that replaces each letter with the letter 13 positions forward in the alphabet. Since the English alphabet has 26 letters, applying ROT13 twice returns the original text—making it a self-inverse function where encoding and decoding are identical operations.

The algorithm processes each character independently: uppercase letters (A-Z) and lowercase letters (a-z) rotate within their respective ranges using modular arithmetic, while numbers, spaces, and punctuation pass through unchanged. Configurable settings allow custom rotation amounts (ROT1 through ROT25) for Caesar cipher variants, case preservation toggles, and non-alphabetic character handling.

Visual alphabet mapping displays the substitution table for educational reference. Common uses include hiding spoilers in online discussions, puzzle games, CTF challenges, and demonstrating basic cryptographic concepts—though ROT13 provides no real security and should never be used for protecting sensitive information.

How to use this ROT13 Encoder/Decoder

1

Enter Text

Type or paste your message in the input field.

2

Choose Shift

Use ROT13 (default) or select any shift from 1-25.

3

Copy Result

The cipher is applied instantly. Copy your encoded/decoded text!

Example Usage

Encoding with ROT13:

Input
Hello World!
Output
Uryyb Jbeyq!

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. Since there are 26 letters, applying ROT13 twice returns the original text.
Is ROT13 secure for encryption?
No. ROT13 provides no real security and is trivially easy to decode. It's used for obscuring spoilers, puzzle games, or hiding text from casual viewing—not for protecting sensitive data.
Why is ROT13 its own inverse?
With 26 letters in the alphabet, rotating by 13 positions twice brings you back to the original. A becomes N, and N becomes A. This makes encoding and decoding identical operations.
What happens to numbers and special characters?
By default, this tool preserves numbers, spaces, and punctuation unchanged. You can toggle "Preserve Non-Alpha" to remove them if needed.
Can I use other rotation values?
Yes! While ROT13 is most common, you can select any shift from 1-25. ROT1 through ROT25 all work similarly. Popular alternatives include ROT5 for digits and ROT47 for ASCII characters.

Related Tools

The ROT13 Encoder/Decoder is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

Featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge