RSA Key Pair Generator

Generate RSA public/private key pairs for encryption or signing in the browser — keys never touch a server.

4096-bit keys may take a few seconds to generate.

FAQ

Are the generated keys ever sent to a server?

No. Key generation uses the browser's built-in Web Crypto API (crypto.subtle.generateKey). The keys exist only in memory and are exported as PEM strings in your browser. Nothing is transmitted.

What is the difference between RSA-OAEP and RSASSA-PKCS1-v1_5?

RSA-OAEP is used for encryption — you encrypt data with the public key and decrypt with the private key. RSASSA-PKCS1-v1_5 is used for digital signing — you sign with the private key and verify with the public key.

What key size should I use?

2048-bit keys are the current minimum recommended size and generate quickly. 4096-bit keys provide a larger security margin but take longer to generate and are slower during use. For most development and testing purposes 2048-bit is sufficient.

What PEM formats are exported?

The public key is exported in SPKI format (SubjectPublicKeyInfo), the standard format for sharing public keys. The private key is exported in PKCS#8 format, the standard for storing private keys. Both are Base64-encoded with PEM headers.