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.

Local demonstration, not a certificate, trusted identity, key-storage service or security audit. Anyone with the private key can decrypt messages. Keep a secure backup; losing it can make ciphertext unrecoverable.

Public key (SPKI PEM)

Private key (PKCS8 PEM)

The private key is shown so you can save it. Do not share it or paste it into an untrusted site.

RSA-OAEP with SHA-256 only encrypts short messages: 190 UTF-8 bytes at 2048 bits or 318 bytes at 3072 bits. Use hybrid encryption for larger data.

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.