RSA Key Pair Generator
Generate RSA 2048/3072/4096-bit public and private key pairs entirely in your browser via the Web Crypto API. Export keys as PEM or Base64 for OpenSSL, SSH, JWT RS256, and PKI use.
Loading tool...
What is RSA Key Pair Generator?
An RSA key pair generator creates a public and a private cryptographic key using the RSA algorithm. The public key can be shared openly to verify signatures or encrypt data, while the private key stays secret to sign or decrypt. This tool generates keys entirely in your browser via the Web Crypto API.
Key Benefits
- Keys never leave your device
- Standards-compliant PEM and Base64 output
- Multiple key strengths (2048/3072/4096)
- No install, no signup, no server round-trip
Common Use Cases
- •JWT RS256 signing keys
- •SSL/TLS certificate signing requests (CSRs)
- •API authentication and mTLS setup
- •Learning and prototyping public-key cryptography
How to Generate an RSA Key Pair
- Pick a key size: Choose 2048, 3072, or 4096 bits.
- Click Generate: The Web Crypto API creates the key pair locally.
- Copy or download: Grab the PEM or Base64 for public and private keys.
- Use securely: Store the private key safely and never expose it client-side.
Key Features
- Generate RSA 2048/3072/4096-bit keys
- 100% in-browser via Web Crypto API
- Export PEM (PKCS#8 & SPKI)
- Copy or download public/private keys
- Base64 (DER) output for compact formats
- No server, no upload, fully private