RSA Key Pair Generator
Generate an RSA public/private key pair in your browser via the native Web Crypto API, exported as standard PEM text.
crypto.subtle. It is not saved anywhere: reloading or closing this tab destroys it.
Download or copy the private key now if you need to keep it.
Select purpose and bit length above, then click Generate Key Pair. Public and private keys will appear side by side in standard PEM formatting.
About This Tool
Generates an RSA public/private key pair directly in your browser using the native Web Crypto API (crypto.subtle.generateKey). Pick a purpose (RSA-OAEP for encrypting payloads, or RSASSA-PKCS1-v1_5 for signing), a modulus length, and a hash algorithm, then export both keys as standard PEM text (SPKI for the public key, PKCS8 for the private key).
This is a key-pair generator: it creates raw cryptographically secure keys in standard OpenSSL-compatible PEM format.
Key Features
- Two RSA algorithms: RSA-OAEP for asymmetric encryption and RSASSA-PKCS1-v1_5 for digital signatures.
- Selectable modulus length: 2048, 3072, or 4096 bits based on required security level.
- Selectable hash algorithm: SHA-256, SHA-384, or SHA-512 used internally by OAEP padding or PKCS1 signatures.
- Standard PEM formatting: SPKI public key and PKCS8 private key wrapped at 64 characters per line.
- Independent copy & download: Each key features individual clipboard copying and .pem file export.
- Ephemeral in-memory privacy: Keys exist strictly in page memory and are destroyed immediately on reload.