RSA Key Pair Generator

Generate a fresh RSA public/private key pair, right in your browser, exported as standard PEM files.

Key size
Purpose

About this tool

RSA is a widely used public-key cryptosystem: a matched pair of keys where anything encrypted with the public key can only be decrypted with the private key (or, for signing, anything signed with the private key can be verified by anyone with the public key). This tool generates a fresh RSA key pair directly in your browser using the Web Crypto API and exports both keys in standard PEM format, ready to use with OpenSSL, SSH tooling, or any library that accepts PEM-encoded keys.

Keep the private key private — anyone who has it can decrypt messages meant for you or forge your signature. The public key is safe to share freely; that's the point. 2048-bit is the current baseline for security, 3072/4096-bit offer a larger security margin at the cost of slower generation and larger keys. Choose "Signing" if you'll use the key to sign and verify data, or "Encryption" if you'll use it to encrypt and decrypt data directly — RSA keys generated for one purpose can't be used for the other via the Web Crypto API.

Version 1.0.0