RSA Key Pair Generator
Generate RSA public and private key pairs in PEM format using the Web Crypto API in your browser.
About This Tool
RSA (Rivest-Shamir-Adleman) is one of the most widely used public-key cryptographic algorithms, essential for secure communication, digital signatures, and key exchange. The RSA Key Pair Generator creates matching public and private key pairs entirely in your browser using the Web Crypto API, with no server involvement whatsoever.
You can generate key pairs in common sizes including 2048-bit, 3072-bit, and 4096-bit. Larger key sizes provide stronger security but take longer to generate and use in cryptographic operations. For most applications in 2026, 2048-bit keys are the minimum recommended size, while 4096-bit keys offer a larger security margin for long-term protection. The generated keys are output in standard PEM format, compatible with OpenSSL, SSH, TLS certificates, JWT signing, and virtually all cryptographic libraries.
This tool is ideal for developers who need a quick key pair for testing, setting up SSH access, configuring JWT authentication, or learning about public-key cryptography. Because the keys are generated using the browser cryptographic API with proper random number generation, they are suitable for real use cases. However, for production environments, always ensure you store private keys securely and never share them.
Frequently Asked Questions
Related Tools
Text Encryption and Decryption
Encrypt and decrypt text using AES-256 encryption entirely in your browser. No data sent to servers.
Security and EncryptionJWT Decoder
Decode JSON Web Tokens to inspect header, payload, and signature without needing the secret key.
Developer ToolsPassword Generator
Generate strong, secure passwords with customizable length, complexity, pronounceable options, and passphrases.
Security and Encryption