Encrypt Text Online
Encrypt text, strings, JSON, YAML, and configuration values locally in your browser.
Use this encrypt online tool to encrypt text, strings, JSON, YAML, and configuration values directly in your browser. Choose an algorithm, enter a passphrase, and get an encrypted result.
- Select the encryption type (AES-256-CBC or 3DES).
- Paste the text you want to encrypt.
- Enter a passphrase to secure the data.
- Click "Encrypt" and copy the output on the right.
This page produces CryptoJS AES-256-CBC output that works with this site's Decrypt Tool. CBC does not detect changed ciphertext, so choose AES-GCM Encrypt when you need that check. Choose 3DES only when another system specifically requires 3DES output; otherwise choose AES.
Use the Decrypt Tool with the same passphrase.
You can encrypt any text value, including:
- Text
- Strings
- JSON
- YAML
- Config files
- Logs and API payloads
Run a decrypt test first. The recipient needs the same algorithm and passphrase, and the passphrase should travel through a different channel from the encrypted text. Visit the Guides section for deeper explanations and best practices.
Encryption uses a secret to protect content. Encoding, including Base64, changes how data is represented but does not make it secret. Hashing is one-way and serves a different job again.
For a quick comparison, see our Encryption vs Encoding vs Hashing guide.
For a broader browser-first overview, read Browser-Side Cryptography Explained.
Use the Base64 Encode tool when you need text-safe encoding without encryption.
Does this tool store my data?
No. Encryption runs entirely in your browser and inputs are not stored on a server.
Which algorithms are supported?
AES-256-CBC and 3DES are available here. Choose AES-GCM when you want decryption to detect changed ciphertext.
What do I need to decrypt later?
Use the same algorithm and passphrase with the Decrypt Tool.