AES Encryptor / Decryptor
Encrypt and decrypt text using AES-256-GCM — the industry-standard authenticated encryption algorithm. Key is derived from your password via PBKDF2-SHA256 with 100,000 iterations and a random salt. Runs entirely in your browser using the crypto.subtle Web Crypto API — your data never leaves your device.
Frequently Asked Questions
What is AES-256-GCM and why is it the gold standard?▼
AES (Advanced Encryption Standard) with 256-bit keys and GCM (Galois/Counter Mode) is the encryption algorithm used by governments, banks, and security-critical applications worldwide. AES-256 provides 256-bit symmetric key strength — computationally infeasible to brute-force. GCM mode adds authenticated encryption: it simultaneously encrypts your data and generates an authentication tag, so any tampering with the ciphertext is detected during decryption. This makes AES-256-GCM both confidential and tamper-proof.
How is the encryption key derived from my password?▼
Your password is never used directly as the AES key. Instead, it's run through PBKDF2 (Password-Based Key Derivation Function 2) with 100,000 iterations of HMAC-SHA256 and a random 16-byte salt. This slow derivation makes brute-force attacks against weak passwords much harder. The derived 256-bit key is only held in memory during the operation and never stored or transmitted.
What is the IV (Initialization Vector) and why does it matter?▼
The IV (or nonce) is a 12-byte random value that ensures the same plaintext encrypted with the same key produces a different ciphertext every time. Without a unique IV, identical plaintexts would produce identical ciphertexts, leaking information about your data patterns. This tool generates a new random IV for each encryption operation using the browser's cryptographically secure random number generator (crypto.getRandomValues).
What format is the encrypted output?▼
The output is a base64-encoded token that embeds everything needed to decrypt: the salt (16 bytes), IV (12 bytes), GCM authentication tag (16 bytes), and the ciphertext. You only need the password and this single token to decrypt — no separate storage of salt or IV is needed. The base64 encoding makes the output safe to copy into text fields, URLs, and JSON.
Is this tool safe for encrypting sensitive data?▼
This tool uses the browser's built-in Web Crypto API (crypto.subtle) — the same API used by password managers and security tools. Your data is processed entirely in your browser; nothing is sent to any server. The algorithm (AES-256-GCM with PBKDF2 key derivation) is cryptographically sound. However, security also depends on your password strength — use a long, random passphrase for sensitive data.
Can I decrypt output from this tool in my own code?▼
Yes. The format is standard: 16-byte salt + 12-byte IV + 16-byte GCM tag + ciphertext, all base64-encoded. Derive the key using PBKDF2 (SHA-256, 100,000 iterations, 256-bit output), then decrypt with AES-256-GCM. Examples exist in Node.js (crypto module), Python (cryptography library), and any language with a Web Crypto-compatible API.
Related Products
on GumroadDevToolkit Starter Kit
A ready-to-deploy developer tools website with 12 built-in tools. Astro + Preact + Tailwind. Deploy to Cloudflare Pages for free. Built-in SEO, dark mode, and ad-ready layout.
Buy on Gumroad →TypeScript Quick Reference Toolkit
5 practical reference files for TypeScript developers: cheatsheet, TS vs JS comparison, 20 utility types with real examples, tsconfig best practices template, and 15 common mistakes guide. Print it. Keep it on your desk.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
HTTP Security Headers Generator
Generate HTTP security headers configuration for nginx and Apache. Configure HSTS, CSP, X-Frame-Options, Referrer-Policy, and more with toggle switches. Copy ready-to-use configs.
Open free tool →
HTTP Security Headers Checker
Paste HTTP response headers and get a checklist of security headers present or missing. Checks CSP, HSTS, X-Frame-Options, and more.
Open free tool →
Content Security Policy Builder
Visual CSP builder with all directives. Generate Content-Security-Policy headers with source expressions, nonces, and report endpoints.
Open free tool →
More Free Tools
Related Articles
SHA256 Hash Generator Online: Hash Any String or File for Free
Generate SHA-256 hashes online for free — hash strings, passwords, file checksums, and API signatures instantly. No install required. Includes code examples in JavaScript, Python, and bash.
Base64 Encode/Decode Explained: When and How to Use It
Understand when to use Base64 encoding and when to avoid it. This guide explains the Base64 algorithm, practical use cases, code examples in JavaScript, Python, Go, and more.
Base64 Encode Decode Online: Complete Developer Guide
Everything developers need to know about Base64 encoding and decoding—how it works, when to use it, URL-safe vs standard, plus a free browser-based Base64 encode decode tool.
How to Use AI for Code Review: A Practical Developer Guide
Learn how to use AI for code review effectively—catching bugs, security issues, and performance problems before they reach production. Includes real examples and free browser tools.
JWT Token Decoder: How to Debug Authentication Issues
Learn how to use a JWT token decoder to diagnose 401 errors, expired tokens, missing claims, and auth misconfiguration. Practical debugging guide with code examples.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →