Skip to main content
ToolSmartly

Text Encryption Tool: Encrypt and Decrypt Easily

Encrypt and decrypt text with historical ciphers (Caesar, ROT13, Vigenère, Atbash) or encode it as Morse, Base64, binary or hexadecimal, with a brute-force mode to recover a Caesar shift. Great for learning cryptography or solving puzzles; these methods do not protect sensitive data.

Algorithm
Mode

History

No encryption yet.

How does text encryption work?

Encryption transforms readable text (plaintext) into unreadable text (ciphertext) using an algorithm and a key. Decryption is the reverse operation. The algorithms shown here are classical ciphers for educational purposes — they are not secure for professional use (use AES or ChaCha20 for sensitive data).

Caesar cipher and ROT13

The Caesar cipher shifts each letter of the alphabet by a fixed number of positions (the key). With a key of 3, A→D, B→E, etc. It is one of the oldest known algorithms, used by Julius Caesar for military communications. ROT13 is a special case with a shift of 13 — applying ROT13 twice returns the original text.

Vigenère cipher

The Vigenère cipher uses a keyword to apply multiple Caesar shifts cyclically. With key "KEY", the 1st letter is shifted by 10 (K), the 2nd by 4 (E), the 3rd by 24 (Y), then repeats. It is much more robust than Caesar because the same letter can be encrypted differently depending on its position.

Classic ciphers and encodings: what each mode does

The tool brings together eight text transformations. Four are historical ciphers (Caesar, ROT13, Vigenère, Atbash) and four are encodings (Morse, Base64, binary, hexadecimal). They are ideal for learning, games and puzzles; none of them really protects sensitive information.

How to use it

  1. Choose the algorithm, then the direction: encrypt (or encode) or decrypt (or decode).
  2. Set the parameter if there is one: a shift of 1 to 25 for Caesar, a keyword for Vigenère.
  3. Type the text: the result appears straight away. For a Caesar message with an unknown shift, brute-force mode lists all 25 possible shifts, so you only need to spot the readable line.

Examples

  • Caesar, shift 3: HELLO → KHOOR. ROT13 is a Caesar cipher with a shift of 13, decoded by applying it a second time.
  • Vigenère, key LEMON: ATTACKATDAWN → LXFOPVEFRNHR. Each letter is shifted by the matching letter of the key (L = 11, E = 4, M = 12…), repeated along the whole message.
  • Atbash: the alphabet is reversed (A ↔ Z, B ↔ Y); HELLO becomes SVOOL.

Why this is not real encryption

A Caesar cipher has only 25 possible keys, all tried in a fraction of a second. Vigenère holds out a little longer but has been broken by frequency analysis since the 19th century. Base64, hexadecimal, binary and Morse are not even ciphers: they only change how the text is written, with no key. To protect a document or a password, use modern encryption (an AES-256 protected archive, an end-to-end encrypted messenger, a password manager).

Frequently asked questions

How do I decode a message when I don’t know the method?

Look at its shape: only 0s and 1s → binary; dots and dashes → Morse; letters, digits, + and / ending in = → Base64; shifted letters that keep the spaces → try Caesar brute force, then Vigenère if you can guess the key.

Why do ROT13 and Atbash have no key?

Because each has a single fixed rule: ROT13 always shifts by 13 and Atbash always mirrors the alphabet. Applying either one twice gives back the original text.