Text Encryptor
Encrypt and decrypt text with a password using AES-GCM.
Encrypt a message with a password using AES-GCM and PBKDF2, then decrypt it later with the same password.
Loading the interactive tool… This page needs JavaScript to run the Text Encryptor.
How to use Text Encryptor
- Enter the value or choose the generation settings you need.
- Run the operation in the browser.
- Review the generated or transformed result.
- Copy or download only what you actually need.
How Text Encryptor works
Choose Encrypt or Decrypt, enter a passphrase of at least 6 characters and the text. A key is derived from the passphrase with PBKDF2 (600,000 iterations of SHA-256, with a random salt), and the text is encrypted with AES-256-GCM using a random IV. The output begins with tk1. and is Base64. Decrypting needs the full output and the same passphrase; a lost passphrase cannot be recovered.
Worked example
Input mode Encrypt, passphrase hunter22, text hi → Output: a string starting tk1. that differs each time. Decrypting it with hunter22 returns hi.
Common uses
- Protecting a short note before pasting it into an email or chat.
- Storing a sensitive snippet in a document under a passphrase.
- Trying out authenticated encryption without installing software.
Best for
- sharing private notes
- protecting small secrets
- learning cryptography
Tips for better results
- Choose a long, unique passphrase.
- Never paste private credentials or secrets unnecessarily.
- Use cryptographically secure generation for passwords and identifiers when the tool provides it.
- Hashing is not encryption, and a digest should not be treated as reversible.
Frequently asked questions
Can you recover a lost password?
No. The password is never stored, so lost passwords cannot be recovered.
Which algorithm is used?
AES-GCM with a key derived via PBKDF2 and a random salt and IV.
Is my data sent to a server?
No. This tool runs in your browser, so what you enter stays on your device.
Related tools
- Passphrase Generator — Generate memorable, strong passphrases from random words.
- Password Generator — Generate strong random passwords.
- Password Strength Checker — Check password strength and get suggestions.
- Caesar Cipher — Shift letters to encode or decode text.
- File Checksum Calculator — Calculate SHA-1, SHA-256 and SHA-512 checksums for a file locally in your browser.
- Hash Identifier — Identify likely hash types such as MD5, SHA-1, SHA-256 and bcrypt.