⚡
usefultools.dev
🔐

Text Encryption: Encrypt & Decrypt Text with a Password

NEW

Encrypt text with a password using AES-256-GCM and PBKDF2, get Base64 you can paste anywhere, and decrypt it back. Free, runs in your browser.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Runs locally with the Web Crypto API. A fresh random salt and IV are used every time, so the same text encrypts differently each run. If you lose the passphrase the text cannot be recovered. Need raw-key AES with hex keys, ECB or CBC? Use the AES calculator. Default key derivation: 600,000 iterations.

⚡

Quick Examples

Typical inputs and the results this tool produces.

Encrypt
hello
80 Base64 chars (59 bytes)
Encrypt
hello, URL-safe on
79 chars, no = padding
Encrypt
1,000 ASCII characters
1408 Base64 chars
Format
Any encrypted text
Starts with VVRFTgEBAAknw
Decrypt
Wrong passphrase
Wrong password or corrupted data
📖

Overview

This text encryption tool turns a message into an encrypted Base64 string protected by a password, and turns that string back into the original text when the same password is entered. It is handy for sending a note through a channel you do not fully trust, storing a recovery code in a shared document, or keeping a small secret in a ticket.

Your passphrase is stretched with PBKDF2-HMAC-SHA-256 (600,000 iterations and a random 16-byte salt) into a 256-bit key, and the text is sealed with AES-256-GCM using a random 12-byte IV. GCM authenticates the data, so a wrong password or an edited ciphertext is rejected instead of producing garbage. Everything runs locally with the Web Crypto API in your browser; nothing is uploaded.

Why use this tool?

  • Share a secret note over chat or email safely
  • Modern authenticated encryption: AES-256-GCM
  • Wrong passwords are detected, never silently mis-decrypted
  • Copy-paste friendly Base64 or URL-safe Base64
  • No upload, no account, works offline once loaded
⭐

Features

🔐

AES-256-GCM

Authenticated encryption from the browser’s Web Crypto API, with a 128-bit tag.

🧂

Salted key derivation

PBKDF2-HMAC-SHA-256 with 600,000 iterations and a new random salt for every message.

🔗

URL-safe option

Switch to URL-safe Base64 without padding for links and filenames; decrypt accepts both.

📏

Strength hint

A rough strength meter nudges you toward longer passphrases before you encrypt.

🧾

Visible format

See the version, iteration count, salt, IV and ciphertext size of each result.

🔁

Test decrypt

One click moves the result into decrypt mode so you can confirm the passphrase works.

🛠️

How to Use

1

Choose Encrypt

Type or paste the text you want to protect.

2

Enter a passphrase

Use several random words; the meter shows a rough strength estimate.

3

Click "Encrypt text"

Copy the Base64 output and send or store it.

4

Decrypt later

Switch to Decrypt, paste the Base64, enter the same passphrase and click "Decrypt text".

🤔

Frequently Asked Questions