RSA Key Pair Generator
Generate an RSA key pair (2048, 3072 or 4096-bit) in your browser with Web Crypto. Export the public and private keys as PEM or JWK. Private keys never leave.
Runs in your browser. Nothing is uploaded.
About RSA Key Pair Generator
RSA Key Pair Generator creates a fresh public and private key with the browser's Web Crypto API and exports them as PEM (public key in SPKI, private key in PKCS#8, the formats OpenSSL, Node.js and most libraries read) or as JWK for JavaScript and JOSE libraries.
Choose RSA-OAEP for encryption, or RS256 or PS256 for signing JWTs and other data. 2048-bit keys are the practical minimum today; 3072 and 4096 bits take a few seconds longer to generate and are slower to use.
Because generation happens on your device, the private key is never transmitted. Still, for production servers, generating keys on the machine that will use them is best practice.
How to use RSA Key Pair Generator
- Set the options you want.
- Your result is generated straight away. Press Generate again for a new one.
- Copy the result with one click.
Frequently asked questions
Can I use these keys for SSH?
Not directly. SSH uses its own public key format. Convert with ssh-keygen -i -m PKCS8 -f public.pem.
Why is the private key labelled PRIVATE KEY, not RSA PRIVATE KEY?
It is in PKCS#8 format, the modern standard. OpenSSL converts it to the older PKCS#1 form if you need it.
Is RSA Key Pair Generator free and private?
Yes. RSA Key Pair Generator is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.