RSA Key Pair Generator
Generate RSA public/private key pairs (1024/2048/4096-bit) as PEM, entirely in your browser.
About this tool
The RSA Key Pair Generator creates a fresh RSA public/private key pair using the browser's native Web Crypto API (RSASSA-PKCS1-v1_5 with SHA-256), then exports both keys as standard PEM-encoded text — PKCS8 for the private key, SPKI for the public key. No external library is used: key generation, export, and Base64/PEM formatting all happen with browser-native primitives, the same ones used by TLS.
Choose a modulus length of 1024, 2048, or 4096 bits. 2048-bit is the current baseline for real-world use; 1024-bit is fast but considered too weak for production and is included mainly for quick testing; 4096-bit offers a larger security margin at the cost of noticeably slower generation — expect several seconds in some browsers, during which a loading indicator is shown.
Each generated key includes its own Copy and Download button (as a .pem file) so you can drop the private key into an SSH config, a JWT RS256 signing setup, a TLS certificate signing request, or any tool expecting standard PKCS8/SPKI PEM. Because everything runs client-side, the private key is never transmitted anywhere.
This tool is well suited for local development, testing RS256 JWT flows, generating throwaway keys for a lab environment, or learning how RSA key material is structured. For production TLS certificates or long-lived signing keys, use a dedicated, audited key-management workflow.
