RSA Key Pair Generator
Generate a local RSA-OAEP 2048-bit key pair and export unencrypted PEM.
Your workspace
Processed in your browserThis utility generates a fresh 2048-bit RSA-OAEP key pair directly in your browser. It uses the Web Crypto API to ensure that key generation happens locally, meaning your private keys are never transmitted over the network.
Generating your key pair
- Click the generate button to trigger the creation of a new RSA-OAEP 2048-bit key pair.
- Copy the resulting PEM blocks. The public key is provided in SPKI format, and the private key is provided in PKCS8 format.
Security and usage
The generated private key is exported in an unencrypted PKCS8 format. This is suitable for development, testing, or ephemeral environments. Because the keys are generated locally, they are not stored or managed by any server. Once you refresh the page, these keys are lost unless you have saved them elsewhere.
Typical output
Generate new key pair
-----BEGIN PUBLIC KEY-----\n...\n-----END PUBLIC KEY-----\n\n-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----
Questions about key generation
Are these keys secure for production?
While the keys are cryptographically strong (2048-bit RSA), the private key is exported unencrypted. For production, you should use a dedicated key management system or hardware security module (HSM) to protect your private keys.
Can I use these keys with OpenSSH?
No, this tool generates standard SPKI/PKCS8 PEM files. OpenSSH typically requires keys in its own specific format, which often requires a conversion step using tools like ssh-keygen.
Continue your workflow
Explore more tools in this category for your next step.
Certificate and Private Key Matcher
Sign a local random challenge with an unencrypted PKCS#8 private key and verify it using the certificate public key.
ECDSA P-256 Key Generator
Generate an ECDSA P-256 signing key pair in the browser.
Ed25519 Key Generator
Generate an Ed25519 key pair using Web Crypto.
Base64 to PEM
Wrap Base64 DER text in selected PEM armor with 64-character lines.