Encryption Key Generator
Generate a random AES key in hex and Base64.
Keys use your browser's secure random generator and are never sent anywhere. A 256-bit key is the usual choice for AES.
100% private - runs entirely in your browser.
Your input, keys and passwords are never uploaded. Want proof? Load this page, then turn off your internet - the tool still works. For an exact check, open your browser's DevTools Network tab and confirm no data is sent when you use it.
About the Encryption Key Generator
Generate a random symmetric key for AES encryption in both hex and Base64 formats.
Choose 128, 192 or 256 bits, then copy the key straight into your app or config.
Keys use your browser's secure random generator and are never sent anywhere.
Key features
- 128, 192 or 256-bit keys
- Hex and Base64 output
- Cryptographically secure randomness
- Copy either format instantly
How to use
- 1Choose a key size.
- 2Click generate to create a key.
- 3Copy the hex or Base64 value.
Examples
256 bits64 hex charactersA 256-bit key is 32 bytes, shown as 64 hex characters.
same keyA Base64 stringThe same bytes encoded as Base64 for config files.
Frequently asked questions
- Which key size should I use?
- 256-bit is the usual choice for AES today. 128-bit is still strong and faster where that matters.
- What is the difference between hex and Base64?
- They are two encodings of the same random bytes. Use whichever your library or config expects.
- Is the key uploaded?
- No. It is generated locally and never sent anywhere.
Continue your workflow
Open a related tool to prepare your files or refine the finished result.
- Security & CryptographyRandom Bytes Generator
Generate secure random bytes in hex, Base64 or decimal.
Open tool - Security & CryptographyAES Encryption
Encrypt and decrypt text with a password using AES-256-GCM.
Open tool - GeneratorsPassword Generator
Create strong, random passwords with custom rules.
Open tool
