RSA Key Pair Generator
Description
Generate RSA public/private key pairs with selectable bit length (2048, 4096, etc.) for encryption, signing, and SSH.
About RSA Key Pair Generator
This tool generates an RSA key pair, an asymmetric cryptography primitive consisting of a public key and a matching private key. The public key can be shared freely and is used to encrypt data or verify signatures, while the private key must be kept secret and is used to decrypt data or create signatures. You can select the key length, with 2048 bits considered the practical minimum today and 4096 bits offering a larger margin. Keys are generated client-side in your browser and never transmitted.
How to use
- Choose the key length, such as 2048 or 4096 bits.
- Click Generate to create a fresh public/private key pair in your browser.
- Copy or download the public key to share with others.
- Store the private key securely and never share it with anyone.
Frequently asked questions
What is the difference between the public and private key?
RSA is asymmetric. The public key encrypts data and verifies signatures and can be shared openly; the private key decrypts data and creates signatures and must stay secret.
What key length should I choose?
2048 bits is generally regarded as the minimum acceptable size today, and 4096 bits provides additional long-term security at the cost of slower operations.
Is the private key sent to a server?
No. The key pair is generated entirely in your browser, so the private key stays on your device unless you explicitly save or share it.
Can I use RSA for both encryption and signing?
Yes. RSA supports encryption (encrypt with the public key, decrypt with the private key) and digital signatures (sign with the private key, verify with the public key).