Generators tool
✦ Browser-firstRSA Key Generator
Generate RSA public and private key pairs (PEM).
Public key
Private key
OpenSSH public key
The key pair is created in your browser with the Web Crypto API. The private key never leaves your device. Keep it secret, and do not reuse a key that you generated on a page you do not trust.
About this tool
Generate 2048, 3072 or 4096-bit RSA key pairs in PEM format using your browser's Web Crypto API. The private key is created on your device and is never sent to the server.
How to use the RSA Key Generator
- Choose a key size such as 2048 or 4096 bits.
- Generate the key pair in your browser.
- Copy or download the public and private keys in PEM format.
Common uses
- Local development and testing
- JWT signing experiments
- Learning public-key cryptography
RSA Key Generator questions
Is it safe to use these keys in production?
Keys are made locally with the Web Crypto API, but for production secrets use your own hardened environment or key-management service.
Is the private key sent anywhere?
No. Generation happens in your browser.
What key size should I pick?
2048 bits is the common minimum; 3072 or 4096 gives more margin and is slower to generate.