Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. All processing happens entirely in your browser - your files never leave your device. No uploads, no accounts, complete privacy.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Document & Text
  3. Text Encryption & Encoding
Add to favorites

Text Encryption & Encoding

Encrypt text with 12 methods: Caesar, Vigenère, XOR, Atbash, ROT13, Base64, Morse, Binary, Hex, Affine, Rail Fence ciphers

Transform text with 12 classical ciphers and encodings: Caesar, Vigenere, XOR, Atbash, ROT13, Affine, Rail Fence, plus Base64, Hexadecimal, Binary, and Morse code. This is an educational and hobbyist tool for learning how historical ciphers work and for puzzle/CTF use. It is NOT secure encryption: do not use it to protect passwords, private keys, or any real secret. Everything runs in your browser, nothing is uploaded.

Text processed locallyMore document & textJump to full guide

Related reading

  • A Practical Guide to Data Encryption: Protecting Information at Rest and in Transit14 min read

Initializing in your browser…

You might also like

Text Case Converter

Convert text between 12 cases: UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Sentence, and Alternating

Text Diff & Compare Tool

Compare texts with side-by-side and unified diff views, line-by-line or character-level comparison, change statistics, and export to patch file

Text Statistics Analyzer

Analyze text complexity, readability, and detailed statistics

Text Encryption & Encoding: a worked example

You need to store a recovery note in a shared doc but want only people with the passphrase to read it.

Input

Plaintext note + passphrase
Text Encryption & Encoding produces

Output

U2FsdGVkX1+… (AES-256-GCM ciphertext, salt + IV embedded, paste-safe Base64)

The passphrase is stretched with a key-derivation function and the text sealed with authenticated AES-256, so it cannot be silently altered and is unreadable without the passphrase. It runs locally, the point of client-side encryption is that you do not have to trust the page hosting it.

What is Text Encryption & Encoding?

Transform text with 12 classical ciphers and encodings: Caesar, Vigenere, XOR, Atbash, ROT13, Affine, Rail Fence, plus Base64, Hexadecimal, Binary, and Morse code. This is an educational and hobbyist tool for learning how historical ciphers work and for puzzle/CTF use. It is NOT secure encryption: do not use it to protect passwords, private keys, or any real secret. Everything runs in your browser, nothing is uploaded.

How it works

Every method here is either a classical cipher or a reversible text encoding, all implemented in plain JavaScript that runs in your browser. None of them provide real cryptographic security, and each carries a security label in the tool (Encoding, Weak, or Moderate) to make that clear.

The substitution ciphers shift or swap letters within the A-Z alphabet and leave other characters untouched. Caesar shifts every letter by a fixed amount you choose (1 to 25); ROT13 is just Caesar with a shift of 13, which is its own inverse. Atbash mirrors the alphabet (A maps to Z, B to Y) and needs no key. The Affine cipher applies the formula (a * x + b) mod 26, where key A must be coprime with 26 (the tool restricts A to 1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, 25 so a modular inverse exists for decryption). Vigenere is a polyalphabetic cipher that shifts each letter by a different amount derived from a repeating keyword, which hides the simple letter-frequency signature that breaks Caesar - but it falls to Kasiski examination and index-of-coincidence analysis once the key length is found.

The Rail Fence cipher is a transposition cipher: it writes your text in a zigzag across a chosen number of rails (2 to 10) and reads it back off row by row, rearranging letters without changing them. The XOR cipher combines each character code with a repeating key byte using bitwise XOR, which is symmetric (applying it twice with the same key restores the original). The remaining methods are encodings, not ciphers at all: Base64, Hexadecimal, and Binary re-express the bytes of your text in another representation, and Morse maps letters to dots and dashes. Anyone can reverse an encoding instantly without a key, so they offer zero secrecy - they are useful for transport, display, or learning, not protection.

How to use

  1. 1Pick a method - each is tagged Encoding, Weak, or Moderate
  2. 2Enter the text you want to transform
  3. 3Set the key if the method needs one (Caesar shift, Vigenere/XOR keyword, Affine keys, or rail count)
  4. 4Click Encrypt to encode or Encrypt the text
  5. 5Click Decrypt (or re-run the same method for symmetric ones like ROT13, Atbash, and XOR) to reverse it

Key features

  • Substitution ciphers: Caesar, ROT13, Atbash, Affine, Vigenere
  • Transposition cipher: Rail Fence (2-10 rails)
  • XOR cipher with a repeating-key byte operation
  • Encodings: Base64, Hexadecimal, Binary, Morse code
  • Per-method security label (Encoding / Weak / Moderate) so you know what protection it does and does not give
  • Swap input and output, upload/download .txt, and a recent-operations history
  • Runs entirely client-side, nothing is sent to a server

When to reach for this

  • Learning how classical ciphers work

    See Caesar, Vigenere, Affine, and Rail Fence encrypt and decrypt step by step to understand substitution and transposition.

  • Puzzles, escape rooms, and CTF challenges

    Encode clues with ROT13, Atbash, Morse, or Base64, or decode messages you have been handed in a game or challenge.

  • Quick text encoding

    Convert text to and from Base64, hex, or binary for inspection, transport, or copying into another tool.

  • Teaching cryptography basics

    Demonstrate why classical ciphers fall to frequency analysis and why encodings provide no secrecy at all.

Frequently asked questions

Is this secure enough to protect sensitive data?

No. Every method here is a classical cipher or a reversible encoding, and all of them can be broken or trivially decoded. Do not use this tool to protect passwords, keys, or any real secret. For genuine security use modern encryption such as AES-256 or RSA in a dedicated, audited tool.

What is the difference between encoding and encryption here?

The encodings (Base64, Hexadecimal, Binary, Morse) just re-express your text in another form and need no key, so anyone can reverse them instantly. The ciphers (Caesar, Vigenere, XOR, Affine, Rail Fence) use a key, but they are classical schemes that are weak by modern standards.

Which methods do not need a key?

Atbash, ROT13, Base64, Hexadecimal, Binary, Morse, and Reverse need no key. Caesar (shift), Vigenere and XOR (keyword), Affine (two keys), and Rail Fence (rail count) all require a key.

Is my data sent anywhere?

No. All transformation happens in your browser in plain JavaScript. Nothing is transmitted.

Related tools and how they differ

  • File Encryption: Real AES-256-GCM encryption for files with a password and PBKDF2 key derivation. Use it to actually protect sensitive data, not these classical ciphers.

Further reading

  • A Practical Guide to Data Encryption: Protecting Information at Rest and in Transit14 min read

Private by design

Your text is processed locally in the browser. Nothing you paste or open is transmitted or logged.