Encode and decode Base64, base64url and MIME with UTF-8-safe text for Arabic and emoji
Secure Encryption Key Generator
Create AES and ChaCha20-Poly1305 keys with the correct IV/nonce using the operating system’s cryptographic generator, plus developer formats, local verification and bulk export. Keys are never sent or stored.
Key generator
Usage example for the first key
Method and accuracy
Every key is created from raw bytes through crypto.getRandomValues(), the Web Crypto interface to the operating system’s cryptographically secure random generator. Displayed entropy equals the raw key length: 128, 192 or 256 bits. Hex, Base64, Base64URL and JWK do not add or remove strength; they only represent the same bytes. Each batch is checked for encoded length and duplicate keys or IV/nonces.
Choosing the right mode
- AES-GCM: the recommended default because it provides confidentiality and authentication; it uses a 96-bit nonce that must never repeat with the same key.
- ChaCha20-Poly1305: modern authenticated encryption with a 256-bit key and 96-bit nonce.
- AES-CBC and AES-CTR: do not provide built-in authentication; use a correctly composed separate MAC or choose GCM.
FAQ
Are keys sent to a server?
No. Generation and export make no network request, and keys are not written to localStorage or cookies.
Is an IV secret?
It is generally not secret, but it must have the correct length and be unique with the key; nonce reuse in GCM or ChaCha20-Poly1305 can destroy security.


