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.

Keys are generated locally in your browser. Nothing is uploaded to any server.

Public Key (Share this key)

Binary Format: Displayed as hex. Download for actual binary file.
SSH Format (for ~/.ssh/authorized_keys)

Private Key (Keep this secret!)

Binary Format: Displayed as hex. Download for actual binary file. Keep private key secure!
Private key is hidden
Key Size
bits
Format
key type
Output
encoding
Public Key
bytes
Private Key
bytes

About RSA Key Formats

Key Format Standards:
  • 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.
Output Encoding Formats:
  • 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