RSA Key Generator
Generate RSA public and private key pairs.
RSA Key Generator
Generate RSA public/private key pairs for secure encryption and digital signatures
Note: Larger keys provide better security but take longer to generate. 2048-bit is the current standard.
PKCS#1: RSA-specific format. PKCS#8: Universal format for all key types, more compatible.
PEM: Text format with BEGIN/END headers. DER: Binary ASN.1 encoding. Base64: Raw base64 without headers.
Public Key (Share this key)
SSH Format (for ~/.ssh/authorized_keys)
Private Key (Keep this secret!)
About RSA Key Formats
- PKCS#1 (RSA Cryptography Standard): Traditional RSA-specific format. Uses "RSA PRIVATE KEY" or "RSA PUBLIC KEY" headers. Best for legacy systems and pure RSA applications.
- PKCS#8 (Private-Key Information Syntax): Universal key format that works with any algorithm type. Uses "PRIVATE KEY" or "PUBLIC KEY" headers. More compatible with modern systems like Java, OpenSSL, etc.
- PEM (Privacy-Enhanced Mail): Base64 encoded with BEGIN/END headers. Human-readable, most common format.
- DER (Distinguished Encoding Rules): Binary ASN.1 encoding. Used in certificates and some programming languages.
- Base64: Raw base64 string without any headers or metadata. Useful for embedding in JSON/XML.
Security Notice: All key generation happens in your browser. Keys are never sent to any server. Always backup your private key securely!
Format Compatibility Matrix
| Use Case | Recommended Format | Output Encoding |
|---|---|---|
| SSH Keys | PKCS#1 | PEM + SSH format |
| OpenSSL | PKCS#8 | PEM |
| Java KeyStore | PKCS#8 | DER |
| Windows Certificate Store | PKCS#8 | DER |
| API Integration / JSON | Either | Base64 |
Related Tools
Features
- Free to use
- No registration
- Privacy protected
- Works offline