RSA key pair generator
Generate an RSA public/private key pair in PEM format using the Web Crypto API.
Loading tool…
About the rsa key pair generator
Generates an RSA key pair with the Web Crypto API built into your browser and exports both halves as PEM: the public key in SPKI form and the private key in PKCS#8. Nothing is transmitted, and the private key exists only in this tab.
Frequently asked questions
What key size should I choose?
2048 bits is the current baseline and is fine through the 2030s. 4096 buys margin at a real cost in signing speed and generation time. 1024 is broken and included only for interoperability testing.
Can I use this key for SSH?
Not directly. SSH expects its own formats. Convert with ssh-keygen -i or generate the key with ssh-keygen in the first place — that is the safer route for anything you will actually log in with.