Skip to main content
100% private — runs in your browser

Text Encrypt / Decrypt

Encrypt and decrypt text locally with a password using AES-GCM.

Plain text

Uses AES-GCM with PBKDF2 (SHA-256, 100k iterations) via Web Crypto. All operations are local.

Encrypted payload (Base64)

How to use Text Encrypt / Decrypt

  1. Enter text and password

    Type the plaintext and a strong passphrase.

  2. Encrypt

    Generate an encrypted Base64 payload you can copy and share/store.

  3. Decrypt

    Paste an encrypted payload and enter the same password to recover the plaintext.

Frequently asked questions

Is my text or password uploaded?

No. Encryption and decryption run locally in your browser using the Web Crypto API.

What encryption is used?

AES-GCM for encryption with a key derived from your password using PBKDF2 (SHA-256). A random salt and IV are generated for each encryption.

What happens if I forget the password?

The data cannot be recovered without the correct password. There is no backdoor or reset mechanism.

Is this secure for highly sensitive data?

It uses modern cryptography, but overall security depends on passphrase strength and how you handle the payload. For high-risk use cases, rely on vetted, purpose-built solutions and policies.

Why does the encrypted output change each time?

A new random salt and IV are used for every encryption, so the same plaintext and password produce different ciphertexts.

About Text Encrypt / Decrypt

The Text Encrypt / Decrypt tool lets you protect text with a password using modern browser cryptography (AES-GCM with a key derived via PBKDF2). Encrypt a message to produce a portable, Base64-encoded payload, or decrypt a previously generated payload with the correct password. All operations run locally in your browser, so your plaintext and passwords are never sent to a server. This is useful for sharing sensitive notes or snippets when both parties have the passphrase, but it should be used with an understanding of basic security practices and limitations.

How it works

When you encrypt, the tool derives a cryptographic key from your password using PBKDF2 with a random salt and many iterations, then encrypts the text with AES-GCM using a random initialization vector (IV). The salt, IV, and ciphertext are packaged together so the same password can decrypt the payload later. AES-GCM provides confidentiality and integrity protection, meaning tampered ciphertext should fail to decrypt. Using a strong, unique passphrase is essential because the security of the result depends heavily on password strength.

Safe usage and limitations

Client-side encryption can be convenient, but it is not a substitute for end-to-end systems with robust key management. Anyone with the payload and the correct password can decrypt it, and weak passwords can be guessed. Do not reuse passwords from other accounts, and prefer long passphrases. This tool is intended for practical, local encryption tasks; for high-risk or regulated data, use vetted solutions and follow your organization’s security policies. Always keep backups of important plaintext if losing the passphrase would be costly.

Private by design

Encryption and decryption are performed via the Web Crypto API entirely on your device, with no network requests. The tool displays the encrypted payload so you can copy and store or transmit it as needed. Because nothing is uploaded, you retain control over where the ciphertext goes. Combine with the Password Strength Checker to choose stronger passphrases and reduce the risk of brute-force or guessing attacks against your encrypted text.

Use Text Encrypt / Decrypt on your site

This tool runs free and private in the browser. Paste it anywhere — blog posts, documentation, team wikis — and your visitors will use it without leaving your site. The embed includes a small "Made with The Tools Today" credit link.

Open the tool page →

Your privacy, your choice

We use cookies to understand how the site is used and to show relevant ads. Every tool on this site runs entirely in your browser, so the files and text you process are never uploaded. Read our privacy policy.