Text Encryption
Secure text encryption and decryption with AES-GCM/AES-CBC. Password-based, browser-only processing, no data leaves your device.
Is my data safe when using this encryption tool?
Yes, all encryption and decryption happens entirely in your browser using the Web Crypto API. No data is ever sent to any server. Your text and password never leave your device.
What is the difference between AES-GCM and AES-CBC?
AES-GCM provides both encryption and authentication (AEAD), ensuring data integrity and authenticity. AES-CBC only provides encryption without authentication. AES-GCM is generally recommended for most use cases as it is more secure.
What key length should I use?
AES-256 provides the highest security level and is recommended for sensitive data. AES-128 is still considered secure and is faster. Both are widely used in production systems.
Can I decrypt text encrypted with this tool elsewhere?
Yes, the output is standard Base64-encoded ciphertext using standard AES algorithms. Any tool that supports AES-GCM or AES-CBC with PBKDF2 key derivation (100,000 iterations, SHA-256) can decrypt it, given the correct password.
How does password-based encryption work?
The tool uses PBKDF2 (Password-Based Key Derivation Function 2) to convert your password into a cryptographic key. This process involves 100,000 iterations with SHA-256 hashing, making brute-force attacks extremely difficult.
What is the purpose of the initialization vector (IV)?
The IV is a random value used to ensure that encrypting the same text with the same password produces different ciphertext each time. This prevents pattern analysis attacks.
Can I encrypt large files with this tool?
This tool is designed for text encryption. For large files, consider using dedicated file encryption tools. Text encryption in the browser has memory limitations.
What happens if I forget my password?
Without the correct password, decryption is impossible. AES encryption is designed to be secure against brute-force attacks. Always store your password safely.
Is this tool compliant with encryption standards?
Yes, it uses NIST-approved AES algorithms and PBKDF2 key derivation, which are industry standards for secure encryption.
Can I use this tool offline?
Yes, once the page is loaded, all operations work offline since everything runs in your browser.
How to Use Text Encryption
Encrypt and decrypt text with AES-GCM or AES-CBC without leaving your browser. Your password and message are processed on your device and never sent anywhere.
- Paste the text you want to protect into the input area.
- Type a strong passphrase into the Password field.
- Choose AES-GCM or AES-CBC under Algorithm, then pick AES-256 or AES-128 under Key Length.
- Adjust PBKDF2 Iterations — 100,000 is a solid default, while 250,000 or 500,000 better resist brute-force attacks.
- Press Encrypt to scramble your text, or Decrypt with the same settings to recover the original.
Decryption only works with the exact same algorithm, key length, and PBKDF2 iterations used for encryption, so note the settings down.
Related Tools
- AES Encryption / Decryption AES encrypt/decrypt with CBC, CFB, CTR, OFB, ECB modes, Pkcs7/ZeroPadding/NoPadding, 128/192/256-bit keys, Base64 output, auto-detect key/IV format
- File Hash Checker Calculate and verify MD5, SHA-1, SHA-256, SHA-512 file hashes locally
- Line Sort Sort text lines alphabetically, numerically, or by length. Remove duplicates and reverse order with one click.
- Number Spell Out Convert numbers to English words, Chinese uppercase, Roman numerals, and scientific notation instantly.
- Case Converter Convert text between uppercase, lowercase, title case, camelCase, snake_case, kebab-case and more instantly
- Randomize Case Randomly convert text letters to uppercase or lowercase. Create SpongeBob case text instantly in your browser.
- Create Palindrome Create palindromes from any text by appending the reversed string. Free online tool that works instantly in your browser with multi-line support.
- Palindrome Checker Instantly check if any text, word, or sentence is a palindrome. Free online tool that runs 100% in your browser — no data sent to any server.