RSA Key Pair Generator
Generate RSA key pairs (1024, 2048, 4096 bit) instantly in your browser. Export public and private keys in PEM format — 100% client-side, no server involved.
Frequently Asked Questions about RSA Key Generation
How do I generate RSA keys online?
Select your desired key size (1024, 2048, or 4096 bit), click Generate, and your RSA public and private key pair will be created instantly in your browser using the Web Crypto API.
What RSA key size should I use?
2048-bit is recommended for most applications and is considered secure until at least 2030. 4096-bit offers stronger security for long-term use. 1024-bit is considered weak and should only be used for testing.
Is it safe to generate RSA keys online?
Yes, this tool generates keys 100% client-side using your browser's built-in Web Crypto API. No data is ever sent to any server. Your private key stays on your device.
What format are the generated keys in?
Keys are exported in PEM format (Base64-encoded DER wrapped in BEGIN/END headers), which is the standard format used by OpenSSL, SSH, and most applications.
Can I use these keys for production?
Yes, the keys are generated using your browser's cryptographically secure random number generator (Web Crypto API). They are suitable for production use.
What is the difference between public and private keys?
The public key is used to encrypt data or verify signatures, and can be shared freely. The private key is used to decrypt data or create signatures, and must be kept secret.