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. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

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 a passphrase using AES-256-GCM, or encode and decode Caesar, Vigenere, Base64, Morse and more, with each method's real strength explained.

Text processed locallyMore document & textJump to full guide
Related readingA Practical Guide to Data Encryption: Protecting Information at Rest and in Transit10 min

Initializing in your browser…

You might also like

File Encryption

Encrypt any file with a password using AES-256-GCM, entirely in your browser, and decrypt it again later. Each file is checked before download.

Printable Paper Generator

134 printable paper templates, from dot grid and graph paper to Cornell notes, planners, calendars, music and game boards, at any paper size as vector PDF, SVG or PNG.

Text Case Converter

Convert text to 17 case styles at once, including Title Case (Chicago, AP or APA), Sentence case, camelCase, snake_case and URL slugs, with one-click copy.

Text Encryption & Encoding: a worked example

You need to email a colleague the alarm code for the office, and you will tell them the passphrase on the phone.

Message and passphrase

Message:     Alarm code is 4417, back door only.
Passphrase:  dapple amber elm harbor velvet  (generated, five words)
Method:      AES-256-GCM, Encrypt
What Text Encryption & Encoding produces

Encrypted message (one run; yours will differ)

-----BEGIN TOOLBOX ENCRYPTED MESSAGE-----
VEJYQ1JZUDEBAQAJJ8ABABAAABB/SkObfgVaLVdsc9XMvixSx6bScgAAAET83lyZMyxAhrVK5W5F
... (163 bytes in all, as Base64)
-----END TOOLBOX ENCRYPTED MESSAGE-----

The passphrase is stretched with PBKDF2-HMAC-SHA256 at 600,000 iterations into a 256-bit key, and the message is encrypted with AES-GCM using a fresh random salt and nonce, so encrypting the same text again gives a different block. Your colleague pastes the whole block, including the BEGIN and END lines, chooses Decrypt and enters the passphrase. If a single character of the block is changed in transit, or the passphrase is wrong, decryption is refused instead of producing garbage.

What is Text Encryption & Encoding?

Encrypt a message with a passphrase using AES-256-GCM, or encode and decode text with twelve classical ciphers and encodings, from Caesar and Vigenere to Base64 and Morse. Each method says plainly how much protection it gives, and everything runs in your browser.

How it works

People reach for "text encryption" for very different reasons: to send a password or a private note safely, to solve a puzzle, to teach how ciphers work, or simply to decode a Base64 string. This tool covers all of them, and it is upfront about which is which, because a Caesar cipher and real encryption are not in the same league.

Real encryption with a passphrase. The AES-256-GCM method is genuine, modern encryption. Your passphrase is stretched with PBKDF2-HMAC-SHA256 at 600,000 iterations, the figure OWASP recommends, which makes every guess slow for an attacker. A random salt and nonce are generated for each message, so encrypting the same text twice gives different results. GCM includes an authentication tag, so a message that has been altered, or a wrong passphrase, is rejected rather than decrypted into garbage. The result is a block of Base64 text between BEGIN and END lines that you can paste into an email or chat, and the recipient decrypts it here with the same passphrase. It uses the same format as the File Encryption tool on this site. A strength meter checks your passphrase against common patterns and breach lists, and the Generate button creates a five-word passphrase with the browser's cryptographic random number generator.

Classical ciphers, labelled as toys. Caesar, ROT13, Atbash, Affine, Vigenere, Rail fence and repeating-key XOR are historical or teaching ciphers. They are fun for puzzles, escape rooms, geocaching and classrooms, but each can be broken in seconds, and the tool says how: Caesar has only 25 keys, Affine has 311, and Vigenere falls to Kasiski examination. They work on letters a to z and leave digits, punctuation, accented letters and emoji untouched, so a message with mixed content survives the round trip.

Encodings, which hide nothing. Base64, hexadecimal, binary, Morse code and reversed text change how text is written, not who can read it. Base64, hex and binary work on the UTF-8 bytes of the text, so accents, Chinese characters and emoji encode and decode correctly. Morse follows the ITU chart; it has no lower case, and characters without a Morse code are marked.

Fast and private. The classical ciphers and encodings update as you type, and the swap button feeds the result back in with the direction reversed so you can check a round trip. AES runs when you press the button, because stretching the passphrase deliberately takes a moment. Neither your text nor your key ever leaves the browser, and the share link stores only the method and its settings, never the message or the passphrase.

How to use

  1. 1Pick a method. AES-256-GCM is the only one that protects a secret; the others are for puzzles, teaching or encoding.
  2. 2Choose Encrypt or Decrypt (Encode or Decode for encodings).
  3. 3Type or paste your text, open a text file, or press Try an example.
  4. 4Enter the key or passphrase if the method needs one, or set the shift, multiplier or rail count with the controls shown.
  5. 5For classical ciphers the result appears as you type. For AES, press Encrypt with passphrase or Decrypt with passphrase.
  6. 6Copy or download the result, or press the swap button to reverse it and check the round trip.

Key features

  • AES-256-GCM with PBKDF2-HMAC-SHA256 at 600,000 iterations and a fresh salt and nonce per message
  • Tamper detection: altered messages and wrong passphrases are rejected
  • Passphrase strength check and a five-word passphrase generator
  • Caesar, ROT13, Atbash, Affine, Vigenere, Rail fence and XOR ciphers
  • Base64, hexadecimal, binary, Morse code and reverse encodings, Unicode-safe
  • A plain statement of each method's keyspace and how it is broken
  • Live results for classical ciphers and encodings, with a one-click round-trip swap
  • Copy and download, with encrypted messages saved as .asc text
  • Text and keys never stored in the URL or sent anywhere

When to reach for this

  • Sending a secret by email or chat

    Encrypt a Wi-Fi password, a recovery code or a private note with AES, send the text, and share the passphrase through a different channel such as a phone call.

  • Puzzles, escape rooms and geocaching

    Create Caesar, Atbash, Vigenere or rail fence clues, and decode the ones you find, with the shift or key adjusted instantly.

  • Teaching cryptography

    Show students why a Caesar cipher falls to 25 tries and why modern encryption needs a key stretching step, using the explanations on each method.

  • Everyday decoding

    Decode a Base64 string from an API or email header, or read a hex dump, with correct handling of accented and non-Latin characters.

Tips & best practices

  • Share the passphrase over a different channel from the encrypted message, for example the message by email and the passphrase by phone.
  • A passphrase of five or more random words is both stronger and easier to type than a short password full of symbols.
  • Use the swap button after encrypting to confirm the message decrypts before you send it.
  • For files rather than text, use the File Encryption tool, which uses the same encryption format.

Examples

  • Caesar shift of 3

    "Meet at the north gate" with a shift of 3 becomes "Phhw dw wkh qruwk jdwh". Decrypting with the same shift brings it back; anyone can also try all 25 shifts in seconds.

  • Vigenere with the key LEMON

    "Attack at dawn" with the key LEMON becomes "Lxfopv ef rnhr", the classic textbook example. Spaces are kept and the key advances only on letters.

  • Base64 of an accented word

    "héllo" encodes to aMOpbGxv, because the é is two bytes in UTF-8. Decoding gives back the accented word exactly.

Frequently asked questions

Is the AES encryption actually secure?

AES-256-GCM is the same authenticated encryption used across the web and in messaging apps. The weak point is the passphrase: with 600,000 PBKDF2 iterations each guess is expensive, but a short or common passphrase can still be guessed. Use the generator or a long phrase of random words, and never send the passphrase in the same message as the encrypted text.

How does the recipient decrypt my message?

They open this tool, choose AES-256-GCM and Decrypt, paste the whole block including the BEGIN and END lines, enter the passphrase and press Decrypt with passphrase. The tool recognises the message format and tells them it is an encrypted message before they type the passphrase.

What happens if I forget the passphrase?

The message cannot be recovered. There is no back door and nothing is stored on a server, which is exactly what makes the encryption trustworthy.

Why are Caesar, Vigenere and XOR called toy ciphers?

They can be broken without the key. Caesar has only 25 possible shifts, the affine cipher 311 keys, and Vigenere and repeating-key XOR reveal their key length to standard statistical attacks. They are great for puzzles and learning, but not for protecting anything that matters.

Is Base64 a form of encryption?

No. Base64, hex, binary and Morse are encodings: they change how data is written so it can travel through systems that only accept certain characters. Anyone can decode them without a key, which is why the tool labels them "Encoding only".

Do these work with emoji and non-English text?

Yes. Encodings work on UTF-8 bytes, so any character round-trips. Letter ciphers change only the letters a to z and A to Z and leave everything else, including accented letters and emoji, as it is.

Is my text sent anywhere?

No. All encryption, decryption and encoding happens in your browser using the Web Crypto API. The share link contains only the method and its settings.

Related tools and how they differ

  • File Encryption: Encrypts whole files with the same AES-256-GCM format and passphrase stretching.
  • Base64 Encoder/Decoder: A dedicated Base64 tool with URL-safe variants, files and data URLs.
  • Morse Code Translator: Translates Morse code with audio playback and timing options.

Further reading

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

Private by design

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