Toffeekit
  • Home
  • All tools513
  • Recent
  • Favorites
Categories
  • Images51
  • Video21
  • PDF33
  • AI24
  • Data21
  • SEO12
  • Developer32
  • Text27
  • Design18
  • Files13
  • Utilities5
  • Productivity17
  • Finance26
  • Math39
  • Education19
  • Date & Time29
  • Converters43
  • Fun & Random24
  • SaaS13
  • Business17
  • Social11
  • Media5
  • Security13
Buy me a coffee
ToffeekitSecurityRSA Key Pair Generator

RSA Key Pair Generator

2048 to 4096-bit RSA keys as PEM, PKCS#1, OpenSSH or JWK. Runs entirely in your browser — nothing is uploaded.

Help
Runs locally Instant, no sign-up Works offline
Use cases

One click to the right settings

Make an SSH key

id_rsa and id_rsa.pub ready for GitHub or a server.

Sign JWTs with RS256

PKCS#8 and SPKI PEM files most JWT libraries read.

How it works

How to use RSA Key Pair Generator

  1. 01Choose a Key size: 2048, 3072 or 4096 bits.
  2. 02Pick a Format: PEM, PKCS#1, OpenSSH or JWK.
  3. 03For OpenSSH, set the Comment, usually your email or machine name.
  4. 04Copy or download the private and public keys, and click New key pair for another.
Questions

RSA Key Pair Generator FAQ

6 answers to what people ask most about the RSA Key Pair Generator.

What key size should I choose?

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.

What is the difference between PKCS#8 and PKCS#1?

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.

How do I use the key for SSH?

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.

Does the private key have a passphrase?

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.

Can I use these keys to sign JWTs?

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.

Is RSA Key Pair Generator free and private?

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 issue
More tools
Password Generator

Strong random passwords from your browser's crypto.

Security
Text Redactor

Hide emails, phones, cards and more in any text.

Security
Passphrase Generator

Memorable random-word passphrases with entropy.

Security
Password Strength Checker

Test a password's strength and crack time privately.

Security
Something off with RSA Key Pair Generator? Report an issue or ask for a feature.Send feedback
© 2026 Toffeekit/Runs locally · No uploads · Free
AboutContactFeedbackPrivacyTermsCookiesSettingsllms.txt