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.
Use the AES Encryption Key Generator
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
This tool generates cryptographically secure AES encryption keys of 128, 192, or 256 bits directly in your browser using the Web Crypto API. Keys are never sent to any server — all generation happens client-side. The output is provided in both hexadecimal and Base64 encodings for easy integration into your application.
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-10-03 ·
Reviewed by Nham Vu