🗝️

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
Tool

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

SizeSecurity LevelSpeedRecommended Use
1024 bitsWeak (deprecated)FastLegacy systems only
2048 bitsStrongGoodGeneral purpose, TLS, SSH
4096 bitsVery strongSlowerHigh-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.

Frequently Asked Questions