🔐 encrypt.tools
RSA · 2048/3072/4096

RSA Key Pair Generator (2048 / 4096-bit)

Generate RSA key pairs and export them as PEM.

Free · no sign-up · runs locally·

loading tool…
FIELD NOTES

About this tool

RSA remains the most widely deployed public-key algorithm. This generator uses the Web Crypto API to create an RSA-OAEP key pair locally — the private key is generated inside your browser's cryptographic engine and is never transmitted anywhere.

Keys export in standard PEM containers: PKCS#8 for the private key and SPKI (SubjectPublicKeyInfo) for the public key, ready for OpenSSL, ssh, or your application code. 2048 bits is the accepted minimum today; use 4096 for long-lived keys.

Like everything on encrypt.tools, this runs entirely in your browser — nothing you enter is transmitted or stored.

COMMAND LINE

Do the same in a terminal

Reproduce or cross-check this tool with standard command-line utilities. For deterministic operations like hashing and encoding, the output matches exactly.

openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out private.pem
openssl pkey -in private.pem -pubout -out public.pem
FREQUENTLY ASKED

Frequently asked questions about RSA Key Generator

What key size should I use?+

2048 bits is the accepted minimum today. Use 3072 or 4096 for keys that must stay secure for many years. Larger keys are slower to generate and use.

Are the keys generated on a server?+

No — they are generated in your browser with the Web Crypto API and never transmitted. Save the private key before closing the tab; it cannot be recovered afterward.

What formats are the keys in?+

Standard PEM: PKCS#8 for the private key and SPKI (SubjectPublicKeyInfo) for the public key, compatible with OpenSSL and most libraries.

LEARN MORE
RELATED INSTRUMENTS