RSA Key Pair Generator
Generate an RSA key pair (public + private) in PEM, 2048–4096 bit. All values are generated on your device using a cryptographically secure random generator — nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
(click Generate)
Example Output
-----BEGIN PUBLIC KEY----- … -----BEGIN PRIVATE KEY-----
How to Use
- 1Open "More settings" to adjust parameters (e.g. size/length) if needed.
- 2Click the Generate button.
- 3Copy the result with the Copy button.
About RSA Key Pair
An RSA key pair consists of a public key (shareable, for encrypting/verifying) and a private key (kept secret, for decrypting/signing). Both are generated together and mathematically linked.
This tool uses Web Crypto to generate the pair and exports it as PEM: SPKI for the public key and PKCS#8 for the private key. Choose the modulus size (2048 is fine; 3072/4096 are stronger).
Use this pair in the RSA-OAEP (encryption) or RSA Signature (signing) tools. Keep the private key secret — anyone who has it can decrypt and sign on your behalf.
FAQ
Are my data or keys sent to a server?
No. RSA Key Pair runs entirely in your browser using the Web Crypto API and client-side libraries. Your data, passwords, and keys never leave your device.