RSA Key Generator
Generate RSA public/private key pairs
Key Settings
Select key size and generate
About RSA Keys
RSA is a public-key cryptosystem. The public key can be shared openly for encryption, while the private key must be kept secret for decryption. It's widely used for secure data transmission.
Generate RSA key pairs entirely in your browser using the Web Crypto API. Supports 1024, 2048, and 4096-bit key sizes. Private keys never leave your device.
Key Features
- ✓1024, 2048, 4096-bit key sizes
- ✓PEM-formatted SPKI/PKCS8 output
- ✓Web Crypto API — nothing sent to server
- ✓Copy public and private keys separately
- ✓Instant generation
How to RSA Key Generator Online
- 1
Select key size
Choose 1024 (fast), 2048 (recommended), or 4096 (maximum security).
- 2
Generate keys
Click generate to create the key pair.
- 3
Copy keys
Copy public and private keys individually.
Common Use Cases
- •Development and testing cryptographic systems
- •Generating keys for JWT RS256 signing
- •Creating PEM keys for API integrations
- •Learning public/private key cryptography
Frequently Asked Questions
What key size should I use?▼
2048-bit is the minimum recommended for general use. 4096-bit provides extra security for long-term keys. 1024-bit is considered insecure for production.
Are the keys truly secure?▼
Yes — the Web Crypto API uses a cryptographically secure random number generator and generates keys entirely in your browser.