Runs in your browser · nothing uploaded

RSA Keypair Generator — 2048/3072/4096 with PEM Export

Generate an RSA-OAEP keypair in your browser and export the public and private keys as PEM files. 2048, 3072, or 4096 bits. No upload, no server, free.

Loading tool…

More tools

All free, all private — everything runs in your browser.

How to use RSA Keypair Generator

  1. 1Choose a modulus size: 2048 (fast), 3072 (comfortable), or 4096 (conservative).
  2. 2Click Generate — the browser's Web Crypto API creates an RSA-OAEP keypair on your device.
  3. 3Copy or download the public key PEM (X.509 SPKI) and share it freely.
  4. 4Download the private key PEM (PKCS#8) and store it securely — anyone with it can decrypt your data.

RSA Keypair Generator FAQ

What do I get when I generate a keypair?
Two PEM files: the public key (X.509 SubjectPublicKeyInfo) and the private key (PKCS#8), both base64-encoded and wrapped in the standard BEGIN/END PEM headers. These formats work with OpenSSL, ssh-keygen conversions, and most crypto libraries.
Is it safe to generate keys here?
The keypair is generated by your browser's Web Crypto API using its own cryptographic random source, entirely on your device. Nothing is transmitted. Still, for high-value keys, prefer generating them on a machine you fully control with audited tooling — a compromised browser can compromise anything generated in it.
Which key size should I pick?
2048 bits is the general minimum and fastest; 3072 is a comfortable margin; 4096 is the conservative choice for long-lived keys. Bigger keys are slower to generate and use, with modest security gain.