AES Encryption Key Generator
Generate cryptographically secure AES-128, AES-192, or AES-256 keys instantly in hex and Base64 formats using your browser's Web Crypto API.
Key Settings
Keys are generated locally using window.crypto.getRandomValues() — a browser CSPRNG. Nothing is sent to any server.
Generated Key
Choose a key size and click Generate Key
—
Bits
—
Bytes
—
Hex chars
Copied!
Summary
Generate cryptographically secure AES-128, AES-192, or AES-256 keys instantly in hex and Base64 formats using your browser's Web Crypto API.
How it works
- Select the desired AES key size: 128-bit, 192-bit, or 256-bit.
- Click "Generate Key" — the browser calls window.crypto.getRandomValues() to produce a cryptographically secure random byte sequence.
- The key is displayed in both hexadecimal and Base64 formats.
- Click the copy button next to either format to copy the key to your clipboard.
- Click "Generate Key" again to produce a fresh key at any time.
Use cases
- Generate AES keys for symmetric encryption in backend services.
- Create secret keys for JWT HS256/HS384/HS512 signing.
- Produce keys for encrypting sensitive data at rest.
- Generate master keys for password-derived key stretching (PBKDF2, scrypt).
- Quickly test AES encryption implementations with known key sizes.
- Create keys for client-side encryption using SubtleCrypto.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu