RSA Keypair Generator
Create RSA public and private keys in your browser.
How to use
- 1 Choose a key size: 2048, 3072 or 4096 bits.
- 2 Click “Generate keypair” and wait a moment.
- 3 Copy the public key PEM to share or embed.
- 4 Copy the private key PEM and keep it secret.
About RSA Keypair Generator
The RSA Keypair Generator creates a fresh RSA public and private key directly in your browser using the built-in Web Crypto API.
Pick a modulus size — 2048 bits for everyday use, or 3072 and 4096 bits for stronger, longer-lived keys — and the tool generates the pair and exports both halves as standard PEM text you can copy straight into a config file, certificate request or test fixture.
Because everything runs locally, the private key is generated on your device and is never transmitted to any server.
That makes this a safe scratchpad for experiments, demos and learning how public-key cryptography is structured, where the public key can be shared freely while the private key stays secret.
The keys use RSA with a SHA-256 hash and the standard 65537 public exponent, exported in SubjectPublicKeyInfo (SPKI) and PKCS#8 formats wrapped as PEM.
Larger key sizes take noticeably longer to generate and are more expensive to use, so 2048 bits is a sensible default unless you have a specific requirement for more.
For production systems that protect real secrets, generate and store keys with audited tooling and proper key management; this generator is ideal for prototyping, testing and education where convenience and privacy matter most.
FAQ
Are my keys sent anywhere?
No. Keys are generated entirely in your browser with the Web Crypto API and never leave your device. Nothing is uploaded or logged.
Which key size should I pick?
2048-bit keys are a good default for most uses. Choose 3072 or 4096 bits for stronger, longer-lived keys, accepting slower generation and use.
Can I use these keys in production?
They are valid RSA keys, but for systems protecting real secrets use audited tooling with proper key management. This generator is best for testing and learning.