Ready to Execute
Click the blue ▶ Run button in the header bar or press Ctrl + Enter to compile and preview your results.
How to Encrypt Text With a Password (AES-256-GCM in Your Browser)
The output format is written down, so anything can decrypt it later
About Text Encryption Tool — Free Online Tool
Text Encryption Tool encrypts and decrypts with AES-256-GCM and PBKDF2 using the browser’s own WebCrypto, in a documented format rather than a black box.
AES-256-GCM, PBKDF2-HMAC-SHA256 at a configurable iteration count, fresh random salt and IV each time. Output is STv1.<iterations>.<salt>.<iv>.<ciphertext>, all base64.
Everything happens in this tab. Neither the text nor the password is uploaded.
Sending a note over an insecure channel, storing something mildly sensitive in a plain-text file, and demonstrating authenticated encryption.
Also known as: aes encryption tool · text decryption · encrypt and decrypt text · password protect text
When to use it
Because sending something through a channel you do not trust occasionally requires it, and because most online encryptors do not say what algorithm they use or send the text to a server.
How it works
A random salt is generated and PBKDF2 stretches your password into a 256-bit key. A random IV is generated and AES-GCM encrypts. The salt, IV and iteration count travel with the ciphertext so it can be decrypted later.
The Format Is Written Down
Output is STv1.<iterations>.<salt>.<iv>.<ciphertext>, each part base64. That matters because an encryption tool whose format is undocumented holds your data hostage to its own continued existence — if this page disappears, anyone can reimplement the five lines needed to decrypt from the format alone. A black box that cannot be decrypted by anything else is not a security feature.
GCM Detects Tampering
AES-GCM is authenticated encryption: it produces a tag over the ciphertext, and decryption verifies it. Change one character of the block and decryption refuses rather than returning plausible-looking nonsense. That matters because a non-authenticated mode would silently return corrupted plaintext, and you would have no way to tell. It also means a failed decryption cannot distinguish a wrong password from an altered block — both are simply "this does not verify".
The Password Is The Whole Security
AES-256 is not going to be broken. Your password might be. PBKDF2 at 600,000 iterations makes each guess expensive — that is what the iteration count buys, and why it is adjustable — but a password an attacker would try in the first thousand guesses is not saved by any amount of stretching. Run the password through the strength checker on this site before relying on it.
What This Is Not For
This is for a note sent over an insecure channel. It is not for credentials, legal documents, medical records, or anything with a motivated adversary. Those need tooling built for the job — audited, with key management, forward secrecy and a recovery story. There is no recovery here: lose the password and the text is gone permanently, which is what encryption means.
How to Use Text Encryption Tool in 4 Easy Steps
Follow this simple guide to process your files in seconds directly inside your browser tab.
Provide Input for Text Encryption Tool
Paste your payload, code snippet, or string into the Text Encryption Tool editor workspace. An encrypt-and-decrypt tool using AES-256 in GCM mode, with the key derived from a password you choose.
Configure Formatting & Validation Rules
Select indentation preferences, minification, encoding options, or validation rules. Because sending something through a channel you do not trust occasionally requires it, and because most online encryptors do not say what algorithm they use or send the text to a server.
Run In-Browser Engine
The engine executes Text Encryption Tool locally in your browser with microsecond latency and zero server transmission.
Copy or Download Output
Copy the sanitized, formatted, or generated output directly to your clipboard or download it for your project.
Why Use Text Encryption Tool on ShortTrick
Engineered for maximum speed, strict privacy, and frictionless digital productivity.
Zero Code or Token Leaks
Proprietary source code, API keys, database queries, and tokens processed in Text Encryption Tool never leave your browser.
Microsecond Performance
Optimized AST parsers and Web Crypto APIs process large payloads in Text Encryption Tool in milliseconds.
Syntax Validation & Formatting
Text Encryption Tool highlights syntax errors and enforces standard formatting conventions automatically.
Offline Ready
Once loaded, Text Encryption Tool functions entirely offline without requiring an active internet connection.
Frequently Asked Questions About Text Encryption Tool
Common questions regarding Text Encryption Tool, data privacy, file format compatibility, and usage limits.
Popular Searches & Related Tasks for Text Encryption Tool
Common search phrases, secondary format tasks, and workflows users reach for when using this tool.
Direct Variations & Search Synonyms (8)
Specific Workflows & Long-Tail Queries (15)
Semantic Standards & Technical Entities (20)
Encoding, encryption and hashing solve three different problems
All three turn readable text into something unreadable, and that shared appearance is behind a great many security incidents. The question that separates them is simple: who can get the original back, and what do they need in order to do it.
| Encoding | Encryption | Hashing | |
|---|---|---|---|
| Reversible | By anyone | With the key | Never |
| Needs a secret | No | Yes | No |
| Output length | Grows with input | Grows with input | Always the same |
| Purpose | Safe transport | Confidentiality | Verification |
| Example | Base64, URL encoding | AES | SHA-256 |
In practice: Base64 is encoding and offers no protection whatsoever, so a password stored that way is a password stored in plain text with extra steps. A Caesar cipher is encryption with a key small enough to try every value by hand, which makes it a puzzle rather than a protection. And hashing is the right answer for a password precisely because nothing, including you, can turn it back.
Related Developer Tools Tools & Popular Utilities
Explore complementary browser-based tools with zero file uploads and instant in-memory execution.
More Developer Tools Tools
Popular Tools Across Other Categories
Related Reading & Tutorials
Guides, articles, and best practices for developer tools workflows.

How to Encrypt Text With a Password (AES-256-GCM in Your Browser)
