2048 to 4096-bit RSA keys as PEM, PKCS#1, OpenSSH or JWK. Runs entirely in your browser — nothing is uploaded.
6 answers to what people ask most about the RSA Key Pair Generator.
2048 bits is the minimum accepted today and fine for most uses. 3072 bits matches 128-bit security, and 4096 bits is a common choice for long-lived SSH keys at the cost of slower signing.
Both hold the same key. PKCS#8 (BEGIN PRIVATE KEY) is the modern, algorithm-neutral format; PKCS#1 (BEGIN RSA PRIVATE KEY) is the older RSA-only format some legacy tools still expect.
Choose OpenSSH, save id_rsa and id_rsa.pub into your ~/.ssh folder and run chmod 600 on id_rsa. Paste the .pub line into GitHub, GitLab or a server's authorized_keys file.
No. To add one, run ssh-keygen -p -f id_rsa for OpenSSH keys, or openssl pkey -in private-key.pem -aes256 -out encrypted.pem for PEM keys.
Yes. The PEM private key works for RS256, RS384 and RS512 in most JWT libraries, and the JWK format gives a ready-made entry for a JWKS endpoint.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issueStrong random passwords from your browser's crypto.
Hide emails, phones, cards and more in any text.
Memorable random-word passphrases with entropy.
Test a password's strength and crack time privately.