RSA Key Pair Generator
Generate RSA public/private key pairs in your browser using Web Crypto. 2048, 3072, or 4096 bits. PEM format. No data leaves your device.
Public key (PEM)
Private key (PEM)
Reference
What is RSA?
RSA is a public-key cryptosystem widely used for encryption and digital signatures. A key pair consists of a public key (shareable, used for encryption or signature verification) and a private key (secret, used for decryption or signing). This tool uses the browser's SubtleCrypto.generateKey() API. 2048 bits is currently the practical minimum; 4096 bits is more conservative.
Common uses
- SSH keys — convert PEM to OpenSSH format for server access.
- JWT signing — sign tokens with RS256.
- TLS certificates — generate keys for CSR creation.
- Encryption — exchange small encrypted payloads.
Output formats
- PEM — base64-encoded DER between BEGIN/END lines, the most common format.
- JWK — JSON Web Key, used in modern web APIs and OIDC.
Privacy
Keys are generated 100% in your browser via Web Crypto. Nothing is sent to any server.