Free to use, no account
RSA Key Generator
Create an RSA public/private key pair in this browser, inspect its SHA-256 fingerprint, and encrypt or decrypt short messages locally.
How do I create an RSA key pair?
Choose 2048 or 3072 bits and generate a pair. The public key uses SPKI PEM and the private key uses PKCS8 PEM. Save the private key safely; it is not uploaded or backed up.
Frequently asked questions
How do I create an RSA key pair?
Choose 2048 or 3072 bits and generate a pair. The public key uses SPKI PEM and the private key uses PKCS8 PEM. Save the private key safely; it is not uploaded or backed up.
Are my keys or messages uploaded?
No. Web Crypto generates and uses the keys in this browser. Your keys and messages are not uploaded or saved by this page.
Can RSA encrypt a large file?
No. RSA-OAEP is limited to short messages. This tool allows at most 190 UTF-8 bytes with a 2048-bit key or 318 bytes with a 3072-bit key. Larger files need a reviewed hybrid-encryption design.
Is a public key a certificate?
No. An SPKI public key contains key material but does not prove who owns it. A SHA-256 fingerprint helps compare keys through a trusted separate channel.
What happens if I lose my private key?
You may not be able to decrypt messages encrypted for that key. Save a backup somewhere you control before relying on the pair.