Search for a tool
ROT1 Cipher

Tool to decode/encode by ROT1. The ROT1 code for Rotation 1 is 1-letter shift cipher in the alphabet, similar to the Caesar code.

Results

ROT1 Cipher -

Tag(s) : Substitution Cipher

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'ROT1 Cipher' tool for free! Thank you!

ROT1 Cipher

ROT1 Cipher Decoder

 


ROT-1 Encoder

 


Answers to Questions (FAQ)

What is ROT1? (Definition)

The ROT1 cipher is a substitution cipher based on a shift of one (1) letter in the alphabet. Each letter is therefore replaced by the next (A becomes B, B becomes C, etc.).

This shift is the basis of the Caesar code and its variants, sometimes the shift of 1 is called the Augustan code.

How to encrypt using Rot cipher?

All letters in the plaintext are replaced by those immediately following in the alphabet (A becomes B, B becomes C, etc. and for the last letter Z, the alphabet is considered a loop and the letter following Z is therefore A, the first letter)

Initial alphabetABCDEFGHIJKLMNOPQRSTUVWXYZ
Alphabet shifted by ROT1BCDEFGHIJKLMNOPQRSTUVWXYZA

Example: The message ROTATION is coded SPUBUJPO

ROT1 code only supports letters of the standard Latin alphabet (A-Z, a-z). Special characters and punctuation are ignored. Optionally, digits can also be shifted by 1.

How to decrypt Rot1 cipher?

Rot1 decryption is similar to encryption but uses the opposite shift by replacing each letter with the one immediately before in the alphabet (and the letter before A is the letter Z as if the alphabet was a loop).

Alphabet shifted by ROT1ABCDEFGHIJKLMNOPQRSTUVWXYZ
Plain alphabetZABCDEFGHIJKLMNOPQRSTUVWXY

Example: The message BMQIBCFU is decoded ALPHABET

How to program Rot1 functions?

The algorithm for encryption and decryption of ROT1 is: // Pseudo-code
Function encrypt(text) {
alphabet = {A:B, B:C, .., Y:Z, Z:A}
ciphertext = ''
for each character c in text {
ciphertext += alphabet[c]
}
return ciphertext
}
Function decrypt(text) {
alphabet = {A:Z, B:A, C:B, .., Z:Y}
plaintext = ''
for each character c in text {
plaintext += alphabet[c]
}
return plaintext
}
// Python
def rot1(text):
return ''.join(chr(ord(c) + 1) if A <= c <= Y else (A if c == Z else a) for c in text)

Source code

dCode retains ownership of the "ROT1 Cipher" source code. Any algorithm for the "ROT1 Cipher" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "ROT1 Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "ROT1 Cipher" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "ROT1 Cipher" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/rot1-cipher
In a scientific article or book, the recommended bibliographic citation is: ROT1 Cipher on dCode.fr [online website], retrieved on 2025-04-15, https://www.dcode.fr/rot1-cipher

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'ROT1 Cipher' tool for free! Thank you!


https://www.dcode.fr/rot1-cipher
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback