Text Encrypt / Decrypt Tool
Encrypt and decrypt text with a passphrase using AES-GCM. Everything runs in your browser — neither your key nor your text is ever sent to a server.
How to Use
Enter Text and Passphrase
On the "Encrypt" tab, enter the text to encrypt and a passphrase. The passphrase is required for decryption, so keep it safe.
Run Encryption
Press "Encrypt" to generate a Base64 string encrypted with AES-GCM. Use the copy button to save the result.
Decrypt
On the "Decrypt" tab, paste the ciphertext, enter the same passphrase, and press "Decrypt" to recover the original text.
About the Text Encrypt / Decrypt Tool
An online tool that encrypts and decrypts text with AES-GCM using your passphrase as the key. It uses the browser-native Web Crypto API (crypto.subtle) and derives the key securely with PBKDF2. The output is a single Base64 string combining the salt, initialization vector (IV), and ciphertext; the same passphrase is required to decrypt it. Everything runs on your device with no external libraries.
Features
- AES-GCM 256-bitUses authenticated encryption (AES-GCM) that detects tampering while keeping your data confidential.
- PBKDF2 Key DerivationDerives the key from your passphrase with PBKDF2 (SHA-256, high iteration count) and a random salt to resist rainbow-table attacks.
- Fully In-BrowserNeither key nor text is sent to a server. All processing uses the Web Crypto API on your device, with no external libraries.
- Portable Base64Salt, IV, and ciphertext are packed into one Base64 string you can paste straight into an email or note.
Use Cases
- Encrypt notes or passwords before storing them in cloud notes
- Share confidential text securely over email or chat
- Back up API keys and connection details in encrypted form
- Keep diaries or drafts in a form only you can read
- Learn and verify how AES and PBKDF2 encryption work
FAQ
Are my text and passphrase sent to a server?
What encryption method does it use?
Can I decrypt if I forget the passphrase?
What is inside the Base64 ciphertext?
Can it decrypt ciphertext made by other tools?
Can I use it on a smartphone?
Feedback
Missing a feature, or getting a result that looks wrong? Let us know — we improve our tools based on your feedback.