OhMyCalc

Caesar Cipher — Encrypt & Decrypt

Encrypt and decrypt text using the Caesar cipher with adjustable shift. Supports Latin and Cyrillic alphabets with brute-force decryption.

How to Use the Caesar Cipher — Encrypt & Decrypt

  1. Enter or paste your text in the input field.
  2. The encoded or decoded result appears automatically.
  3. Copy the output using the copy button.
  4. Switch between encode and decode modes if available.

Quick Reference

FromTo
A (shift 3)D
HELLO (shift 1)IFMMP
Z (shift 3)C
ABC (shift 13)NOP
TEST (shift 5)YJXY
CODE (shift 7)JVKL

Use Cases

Formula

Caesar cipher shifts each letter by N positions in the alphabet. Encryption: E(x) = (x + n) mod 26. Decryption: D(x) = (x − n) mod 26.

Frequently Asked Questions

What is the Caesar cipher?
The Caesar cipher is one of the oldest encryption methods. Each letter in the plaintext is shifted by a fixed number of positions in the alphabet. It is named after Julius Caesar, who used it in his correspondence.
How do I decrypt without knowing the shift?
Use the brute-force method: try all 25 possible shifts and look for the one that produces readable text. Since there are only 25 variants, this is easy to do manually or automatically.
Does the Caesar cipher work with Cyrillic?
Yes. This tool supports both the Latin (26 letters) and Cyrillic (33 letters) alphabets. Each alphabet is shifted independently.
Is the Caesar cipher secure?
No. The Caesar cipher is trivially broken by brute force (only 25 keys) or frequency analysis. It is used for educational purposes, not real security.