RSA Key Pair Generator
Generate RSA public/private key pairs in PEM format using your browser's Web Crypto API — keys never leave your device.
Key size:
Click Generate Key Pair to create a new RSA key pair. Keys are generated locally and never transmitted.
About RSA key generation in the browser
This tool uses the browser's built-in crypto.subtle.generateKey API (Web Crypto) with RSASSA-PKCS1-v1_5 and SHA-256. Keys are exported in standard SPKI (public) and PKCS#8 (private) formats, then PEM-encoded. 2048-bit keys are recommended for most use cases; 4096-bit offers stronger security at the cost of speed. 1024-bit is considered weak and should only be used for testing.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Cryptography & Security tools
Password Generator
Generate strong, random passwords locally.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes locally.
JWT Decoder
Decode JSON Web Tokens instantly and offline.
Bcrypt Generator
Generate and verify Bcrypt hashes with custom salt rounds.
MD5 Hash Generator
Generate an MD5 hash from any text.
SHA-1 Hash Generator
Generate a SHA-1 hash from any text.
SHA-256 Hash Generator
Generate a SHA-256 hash from any text.
SHA-512 Hash Generator
Generate a SHA-512 hash from any text.