RSA Key Generator

Generate RSA key pairs

Free RSA key generator — create 2048-bit RSA public and private key pairs in your browser with Web Crypto. PEM download, nothing uploaded.

How to use RSA Key Generator

  1. Choose a key size — 2048-bit is the recommended default.
  2. Click Generate Key Pair; the browser's Web Crypto API creates the pair locally.
  3. Copy the public key (SPKI PEM) or download it as public.pem.
  4. Copy or download the private key (PKCS#8 PEM) as private.pem — and keep it secret.

Features

  • Web Crypto API — keys never leave your browser
  • 1024, 2048 and 4096-bit sizes
  • SPKI public key and PKCS#8 private key PEM
  • Copy or download as .pem files

Frequently asked questions

What is an RSA key generator?

An RSA key generator creates a matched public and private key pair: anything signed with the private key can be verified with the public key. This free generator uses your browser's Web Crypto API (RSASSA-PKCS1-v1_5, SHA-256, public exponent 65537) to create the pair on your device — nothing is uploaded, logged, or stored.

Which RSA key size should I choose?

2048-bit is the recommended default — it is the current standard for RSA keys, considered adequate through 2030. 4096-bit is slower to generate but more secure, for keys that must last a long time. 1024-bit is also offered, but it is below the modern minimum — do not use it for real secrets.

What format are the keys in?

The public key is SPKI PEM starting with -----BEGIN PUBLIC KEY----- and the private key is PKCS#8 PEM starting with -----BEGIN PRIVATE KEY-----. The base64 body is wrapped at 64 characters per line, and each key downloads as its own file: public.pem and private.pem.

What can I use these keys for?

Signing and verification: the pair is generated with the sign and verify usages, so you can sign data with the private key and check the signature with the public key. These are not encryption keys — this tool does not make RSA-OAEP pairs, so do not use them to encrypt messages.

Are my keys safe with this tool?

The keys are generated locally in your browser with the Web Crypto API and are never sent to any server. But the private key is exported as an unencrypted PKCS#8 file — anyone who gets that file can use it. Keep it secret: never paste it into a chat, a ticket, or a public repo.

Why is there no passphrase option?

This tool exports an unencrypted PKCS#8 private key and does not offer passphrase-protected PEM, JWK, or OpenSSH formats. If you need a passphrase-protected key or an ssh-rsa line, generate the pair locally with OpenSSL or ssh-keygen instead.

Login to use this free online tool. Create a free account to get started.

Featured on Twelve Tools Hunt for Tools Featured on LaunchBuff Launch Llama Tools Launch your MCP Top Web Development Companies in the US - OnToplist.com Designer Listings Listed on SeeWhatNewAI Featured on SubmitMySaas Featured on AI Agents Directory Product Wing SaaS Wheel Featured on Stremit Featured on Thank John We Are Founders SubmitMySaas ShinyLaunch SaaS Tools Dir Featured on SaasHunt Product List Dir Featured on ShowMeBestAI Listed on Best-AI.org Featured on SaaSCity Listed on LaunchPact CodexFuse Solution on goodSaaS Featured on IndieLaunch Featured on BestAIApps AI X Collection Featured on SemiLaunch Listed on AlterBase We Like Tools codexfuse.dev LaunchClash Featured on Next Launch