RSA Key Generator
Generate RSA-OAEP public/private key pairs.
About RSA Key Generator
RSA Key Generator creates RSA public/private key pairs of 2048, 3072, or 4096 bits directly in your browser using the Web Crypto API, producing keys in standard PEM format ready for immediate use. The public key is safe to share freely while the private key must be kept secret; together they enable asymmetric encryption, digital signatures, and secure key exchange. A 2048-bit key meets current security standards for most applications, while 4096-bit keys provide a larger security margin for long-lived certificates and highly sensitive data. Key generation happens entirely client-side so your private key is never transmitted to any server.
How to Use
Select your desired key size from the key size dropdown: 2048 bits for standard security, 3072 bits for a balanced upgrade, or 4096 bits for maximum security at the cost of slower operations. Choose the intended key usage, either RSASSA-PKCS1-v1_5 for digital signatures or RSA-OAEP for encryption, if the tool provides this option. Click Generate to create the key pair. Both the public and private keys are displayed in PEM format in separate panels. Copy each key individually and store the private key in a secure key management system immediately.
Common Use Cases
- Generating 2048-bit or 4096-bit RSA key pairs for development and staging environments to test TLS or signing workflows
- Creating RSA key pairs for JWT (JSON Web Token) RS256 or RS512 signing and verification in authentication systems
- Producing test key pairs for end-to-end encryption protocol implementation before switching to hardware security modules in production
- Generating key pairs for encrypting sensitive environment variables and configuration secrets in CI/CD pipelines
- Exploring RSA key size trade-offs between security and performance in applied cryptography courses and security training programs