What is an RSA key generator?
An RSA key generator creates a matched pair of keys: a public key you can share freely and a private key you keep secret. This tool uses the RSA-OAEP algorithm with SHA-256.
Key generation happens entirely in your browser via the Web Crypto API — no key material is ever transmitted or stored on a server.
How to generate an RSA key pair
Choose the key size (2048, 3072 or 4096 bits) and press Generate. Larger keys take noticeably longer to produce.
The public key appears on the left in SPKI PEM form and the private key on the right in PKCS#8 PEM form. Use the copy buttons or download each as a .pem file.
Choosing the key size
2048 bits is the current baseline and is sufficient for most applications. 3072 and 4096 bits offer a larger security margin at the cost of slower generation and bigger keys.
Protecting your private key
Anyone who obtains the private key can decrypt data meant for you or sign as you. Store it offline, never commit it to a repository, and never share it. Since generation happens in your browser, the key never touches a server.