RSA Key Pair Generator
Generate RSA public and private key pairs in PEM format directly in your browser. Choose 1024, 2048 or 4096-bit key sizes. No data leaves your device.
🔒 Security Tools
Free
Browser-based
RSA Key Pairs
RSA is an asymmetric encryption algorithm used for secure data transmission, digital signatures and authentication. A key pair consists of a private key (kept secret) and a public key (shared freely). Data encrypted with the public key can only be decrypted by the private key, and vice versa.
Key Size Comparison
| Size | Security Level | Speed | Recommended Use |
|---|---|---|---|
| 1024 bits | Weak (deprecated) | Fast | Legacy systems only |
| 2048 bits | Strong | Good | General purpose, TLS, SSH |
| 4096 bits | Very strong | Slower | High-security, long-lived keys |
Key Formats
Private keys are exported in PKCS#8 PEM format (-----BEGIN PRIVATE KEY-----). Public keys are exported in SPKI PEM format (-----BEGIN PUBLIC KEY-----). Both are widely compatible with OpenSSL, Node.js and most programming languages.