Text Encryptor / Decryptor

Encrypt and decrypt text using a password. Uses AES-256-GCM via Web Crypto API.

About this calculator

Encrypt a message with a password, and decrypt it later with the same password. The tool uses AES-256-GCM through your browser's Web Crypto API, so the text and password never leave your device.

Share the encrypted string over any channel; only someone with the password can read it.

How to use it

  1. Type the text and a strong password.
  2. Press Encrypt and copy the result.
  3. To read it, paste the encrypted text, enter the password and press Decrypt.

How it works

The password is turned into a 256-bit key (using PBKDF2 with a random salt), and the text is encrypted with AES in Galois/Counter Mode, which both hides the content and detects tampering. A fresh random value (nonce) is used each time, so encrypting the same text twice gives different output. There is no recovery: if you lose the password the text cannot be restored.

Worked example

Example

Plain textMeet at 6 pm
EncryptedLong random-looking string (changes every time)

Tips and common mistakes

  • Use a long, unique password. The strength of the encryption depends on it.
  • Send the password through a different channel from the message.
  • Write the password down safely; there is no reset.
  • Decrypt only on devices you trust.
  • For serious secrets, use well-audited tools such as GPG or a password manager.

Frequently asked questions

What encryption does it use?

AES-256-GCM via the Web Crypto API.

Can I recover a forgotten password?

No.

Is the text sent to a server?

No, everything happens in your browser.

Why does the output change each time?

A random nonce and salt are used.

Is it safe for passwords or banking details?

Treat it as a convenience tool, not a replacement for audited software.

Can I decrypt on another device?

Yes, with the same password.

Related tools