Free Encryption/Decryption Tool
Encrypt and decrypt text using AES, DES, and other algorithms. Free, fast, and works entirely in your browser with no sign-up required.
Updated
Encryption Tool
Encrypt and decrypt text using AES-256-GCM/CBC with PBKDF2 key derivation via the Web Crypto API. All processing happens in your browser.
Encrypt Text
0 characters
Frequently Asked Questions
What is the Encryption/Decryption Tool?
The Encryption/Decryption Tool is a free online utility that encrypts and decrypts text using AES, DES, and other cryptographic algorithms.
Is the Encryption/Decryption Tool free and private?
Yes, it is completely free with no registration required. All encryption and decryption happens client-side in your browser, ensuring your data never leaves your device.
What algorithms are supported?
The Encryption/Decryption Tool supports AES (128/256-bit), DES, Triple DES, and other algorithms for varying levels of security.
Is my data safe with this tool?
Absolutely. The Encryption/Decryption Tool processes everything client-side in your browser. No data is uploaded to or stored on any server. Your content remains private on your device at all times.
Does the Encryption/Decryption Tool work on mobile devices?
Yes, the Encryption/Decryption Tool is fully responsive and works on smartphones and tablets. You can use it on any device with a modern web browser -- no app download required.
Do I need to create an account to use this tool?
No account or registration is needed. Simply open the Encryption/Decryption Tool in your browser and start using it immediately. There are no sign-up walls or usage restrictions.
How do I use the Encryption/Decryption Tool?
Simply enter your input in the provided field, adjust any settings to your preference, and the tool will process it instantly. You can then copy the result to your clipboard or download it.
Which browsers are supported?
The Encryption/Decryption Tool works in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. For the best experience, use the latest version of your preferred browser.
What is the difference between AES-GCM and AES-CBC encryption?
Both modes use the same AES cipher, but they handle integrity differently. AES-GCM is authenticated encryption: it scrambles your text and attaches a built-in integrity tag, so if the ciphertext is altered even slightly, decryption fails cleanly instead of returning corrupted output. That makes it the safer default and the reason it is recommended for new work. AES-CBC is an older, widely supported mode without that built-in authentication, so it cannot detect tampering on its own; it is offered mainly for compatibility with systems that expect it. In practice, GCM also uses a shorter 12-byte initialization vector versus 16 bytes for CBC. Unless you specifically need CBC for an existing workflow, choose AES-GCM. You can switch between the two modes in the tool's algorithm dropdown before encrypting.
How does a passphrase become an encryption key in this tool?
You never type a raw AES key directly. Instead you enter a passphrase, and the tool derives the actual key from it using PBKDF2 with 100,000 iterations of SHA-256 over a fresh random 16-byte salt. PBKDF2 is deliberately slow, which sharply raises the cost of brute-forcing a weak passphrase because an attacker must repeat all those iterations for every guess. The random salt means the same passphrase produces a different key each time, defeating precomputed lookup attacks. A new random initialization vector is also generated for every encryption, so encrypting identical text twice never yields the same ciphertext. The salt, IV, and ciphertext are packed into the single string you copy, so you only need to remember the passphrase, algorithm, and key size to decrypt later. Enter your text and passphrase above to try it.
Should I choose 128, 192, or 256-bit AES encryption?
All three key sizes use the same AES cipher and are considered secure; the number refers to how long the derived key is. A 128-bit key is already strong enough for the vast majority of real-world uses and would take an impractical amount of computing power to brute-force. 256-bit gives the largest security margin and is the level associated with top-secret government classifications, which is why it is the tool's default. 192-bit sits in between. For most people the practical difference is negligible, so 256-bit is a sensible choice when in doubt. The one rule that matters is consistency: you must decrypt with the exact same key size used to encrypt, or it will fail. Pick your key length from the dropdown above before encrypting, and use the same setting when you decrypt.
Why does decryption fail even when I have the right passphrase?
A correct passphrase alone is not enough — decryption only succeeds when the algorithm, key size, and passphrase all match the values used at encryption. If you encrypted with AES-GCM at 256-bit but try to decrypt with AES-CBC or 128-bit, it will fail even with the right words. The same applies to the output format: ciphertext copied as Base64 must be decrypted as Base64, not hexadecimal. Another common cause is incomplete copying — the salt and IV are packed into the start of the encrypted string, so a missing or truncated character breaks decryption. With AES-GCM specifically, any tampering or corruption trips the built-in integrity check and stops decryption deliberately. When it fails, recheck those three settings and confirm you pasted the full string. Re-enter your settings above to match and try again.
Is it safe to send the encrypted text and passphrase together?
No — sharing both in the same message defeats the whole point of encryption. If an attacker intercepts a single email or chat that contains the ciphertext and the passphrase side by side, they can decrypt it instantly, and the strong AES cipher provides no protection at all. The standard practice is out-of-band sharing: send the encrypted string one way, such as email or a chat app, and deliver the passphrase through a separate channel like a phone call or a different messaging app. Because this tool derives the key from your passphrase, the ciphertext is only as secure as the passphrase behind it, so use a long, unique one — 12 or more characters mixing cases, digits, and symbols, or the built-in generator. The strength meter above rates your passphrase before you encrypt.
Embed This Tool
Add a free, live version of this widget to your own website or blog post — it runs entirely in your visitors' browsers, with a credit link back to The Toolbox.
<iframe src="https://getthetoolbox.com/embed/encryption-tool" title="Free Encryption/Decryption Tool — The Toolbox" width="100%" height="400" style="max-width:480px;border:1px solid #e2e8f0;border-radius:12px" loading="lazy"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://getthetoolbox.com/security-tools/encryption-tool?utm_source=embed&utm_medium=widget" target="_blank" rel="noopener">Free Encryption/Decryption Tool</a> by The Toolbox</p>Related Tools
Free Hash Verifier Online
Verify file integrity by comparing hash checksums. Free, fast, and works entirely in your browser with no sign-up required.
Free Security Headers Analyzer
Check website security headers and get improvement suggestions. Free, fast, and works entirely in your browser with no sign-up required.
Free HMAC Generator Online
Generate HMAC signatures for API authentication using multiple hashing algorithms. Free, fast, and works entirely in your browser with no sign-up required.
Free CSP Header Generator
Create Content Security Policy headers for your website. Free, fast, and works entirely in your browser with no sign-up required.
About the Encryption/Decryption Tool
The Encryption/Decryption Tool is a free utility for protecting short pieces of text with strong, modern cryptography. Paste a message, choose an algorithm, enter a passphrase, and the tool turns your plain text into an unreadable ciphertext you can safely paste into an email, a note, or a chat. Run it in reverse with the same passphrase to recover the original. It is built for anyone who needs to move a secret value across an insecure channel: a developer sharing an API key with a teammate, someone storing recovery codes, or a writer who wants a private note that only they can unlock.
Every operation runs locally in your browser through the built-in Web Crypto API. Your text and your passphrase are never uploaded to a server, never logged, and never stored. There is no sign-up and nothing to install — once the page has loaded, the encryption works even if you go offline.
Which algorithms it uses
The tool encrypts with AES, the symmetric cipher adopted as a U.S. federal standard and used worldwide for everything from disk encryption to TLS. Two modes are available:
- AES-GCM (recommended) — authenticated encryption. It both scrambles your data and attaches a built-in integrity tag, so any tampering with the ciphertext is detected and decryption fails cleanly rather than returning corrupted text.
- AES-CBC — a widely supported legacy mode without built-in authentication. It is offered for compatibility, but AES-GCM is the better default for new work.
You can set the key length to 128, 192, or 256 bits. 128-bit keys are already considered secure for the vast majority of uses; 256-bit gives the largest security margin and is the level associated with top-secret classifications. Output can be rendered as Base64 (compact, paste-friendly) or hexadecimal.
How your passphrase becomes a key
You never type a raw AES key — you type a passphrase, and the tool derives the key for you. It uses PBKDF2 with 100,000 iterations of SHA-256 over a fresh random 16-byte salt. PBKDF2 deliberately makes key derivation slow, which sharply raises the cost of brute-forcing a weak passphrase. A new random initialization vector (IV) is also generated for each encryption — 12 bytes for AES-GCM, 16 bytes for AES-CBC — so encrypting the same text twice never produces the same output.
The salt, the IV, and the ciphertext are packed together into the single string you copy. That means you do not have to track those values yourself: to decrypt, you only need the same passphrase, the same algorithm, and the same key size. A built-in passphrase strength meter rates what you type from Weak to Very Strong, and a one-click generator can create a strong random passphrase for you.
Tips for safe use and reliable decryption
- Match the settings exactly. Decryption only succeeds when the algorithm, key size, and passphrase are identical to those used at encryption. If decryption fails, check those three first.
- Share the passphrase out of band. Send the ciphertext one way (email, chat) and the passphrase another (a phone call, a separate app). Keeping them together defeats the purpose.
- Use a long, unique passphrase. Aim for 12 or more characters mixing cases, digits, and symbols, or use the generator. The cipher is only as strong as the passphrase behind it.
- Know the scope. This tool is designed for text. For encrypting whole files or for long-term key management, established tools such as GPG remain the right choice.
Enter your text and passphrase above to encrypt or decrypt instantly, then copy or download the result.