RSA Key Generator & Encrypt / Decrypt

Public key (PEM)
Private key (PEM)

About this tool

Generates a 2048-bit RSA key pair using the browser's native WebCrypto engine and exports both keys in PEM format: the public key as SPKI, the private key as PKCS#8. Share the public key freely; anyone can use it to encrypt a message that only your private key can open. Encryption uses RSA-OAEP with SHA-256, and the ciphertext is shown as Base64.

Because RSA-OAEP encrypts short payloads directly, this is best for small secrets such as passwords or symmetric keys rather than large documents. Everything happens locally — the key pair is created in memory, nothing is uploaded, and closing the tab discards the private key. Keep your private key secret and never paste someone else's private key into a site you do not trust.

Related tools

AES Encrypt / DecryptBase64 Encoder / DecoderMD5 / SHA Hash