RSA Key Generator Online — Create RSA Public & Private Key Pairs Free

CodexFuse Team · 2026-10-13T14:37:25.808Z · 6 min read min read

Create a free RSA public and private key pair online in under a minute with the CodexFuse RSA Key Generator. Keys are generated client-side in your browser.

An RSA key generator is a tool that creates a matched pair of cryptographic keys: one public, one private. You share the public key freely, keep the private key secret, and the mathematics of RSA makes sure that what one key locks, only the other can unlock.

If you need keys for a server, an SSH login, a website certificate, or an encrypted message, you do not need to install anything. The RSA Key Generator from CodexFuse creates a pair in your browser in under a minute. You can also do it with our rsa decryption — free, no signup needed.

What Is an RSA Key Generator?

An RSA key generator is a tool that creates an RSA public and private key pair by picking two large prime numbers and combining them into a modulus that defines the keys. The public key encrypts data and verifies signatures, while the private key decrypts data and creates signatures. To walk through both halves of that flow, the digital signature generator signs a message with the private key and verifies it with the public key, step by step.

The CodexFuse RSA Key Generator runs entirely in your browser. Keys are generated client-side and never sent to a server, so your private key never travels over the network and is never stored by CodexFuse.

  • A public key you can share with anyone, in a standard format servers accept.
  • A private key that stays on your device and is never shared.
  • A choice of key sizes, with 2048-bit as the common default.

How Does RSA Key Generation Work?

RSA key generation works by choosing two large prime numbers, multiplying them into a modulus, and deriving a public exponent and a private exponent from them. The public key holds the modulus and public exponent, while the private key holds the modulus and private exponent. The primes themselves are then discarded.

The security rests on factoring: multiplying two large primes is easy, but splitting the modulus back into its original primes is hard. Only the holder of the private key can reverse what the public key did.

Which RSA Key Size Should You Choose?

You should choose 2048-bit RSA for most uses, because it is the widely accepted default and works everywhere. Choose 4096-bit when you need extra margin for long-lived keys, such as a root certificate or a signing key you plan to keep for years.

Key sizeTypical useGeneration timeCompatibility
2048-bitServers, SSH, everyday encryptionFastUniversal
3072-bitLonger-lived certificatesModerateWide
4096-bitRoot keys, long-term signingSlowerWide

Key size is only part of the picture. A 4096-bit key stored in a shared document is far weaker than a 2048-bit key stored properly.

\n

If the key is for server logins or Git rather than general encryption, generate it with the SSH key generator, which creates RSA 2048 and RSA 4096 pairs in OpenSSH format, ready for authorized_keys.

How Do You Use the RSA Key Generator?

To use the RSA Key Generator, open the tool, choose your key size, generate the pair, and save the private key in a secure place on your own device. Keys are generated client-side and never sent to a server, so the private key exists only where you save it.

  1. Open the RSA Key Generator in your browser.
  2. Choose a key size: 2048-bit for most uses, 4096-bit for long-lived keys.
  3. Generate the key pair. The tool creates both keys in your browser.
  4. Copy the public key and share it wherever the other side needs it.
  5. Save the private key in a secure file on your own device, and set a passphrase on it if offered.
  6. Confirm the pair works with a small test, such as encrypting a test message and decrypting it again.

Two rules matter above all others. First, never paste a real private key into any website, chat message, or email. Use test examples only when learning, and treat any real private key that leaves your device as exposed. Second, back up your private key in an encrypted location, because a lost private key cannot be recovered from the public key.

For the next steps, see our guide to RSA encryption with a public key, our guide to RSA decryption with a private key, and our guide to the free online AES encryption tool.

What Is the Difference Between the Public Key and the Private Key?

The public key is the shareable half of the pair: it encrypts data and verifies signatures, and anyone may hold a copy. The private key is the secret half: it decrypts data and creates signatures, and only you may hold it, because anyone with it can read your messages and impersonate you.

PropertyPublic keyPrivate key
Who holds itAnyone you share it withOnly you
EncryptionEncrypts messages to youDecrypts messages sent to you
SignaturesVerifies your signaturesCreates your signatures
If leakedNo harm by itselfFull compromise: replace the pair

How Do You Keep Your Private Key Safe?

You keep your private key safe by storing it in an encrypted location only you can reach, protecting it with a passphrase, and never copying it into a website, chat, email, or shared document. A private key is only as safe as its weakest copy.

  • Use a passphrase: a stolen key file alone is then not enough.
  • Limit copies: keep one working copy and one encrypted backup.
  • Set strict permissions: the key file should be readable only by your account.
  • Never share it: send only the public key.
  • Rotate on suspicion: if a key may have been seen by anyone else, generate a fresh pair.
  • Separate keys per purpose: use different keys for servers, signing, and encryption.

If a private key is leaked, act at once: generate a fresh pair, install the new public key everywhere the old one was used, and treat anything encrypted to the old key as readable by whoever holds the leak.

Keys, servers, and certificates eating your week?

CodexFuse runs your servers, updates, backups, and security as one fully managed platform on pay-as-you-go credits, so the infrastructure behind your keys is handled while you run your business.

Get Started with CodexFuse

Frequently Asked Questions

Is an online RSA key generator safe to use?

It is safe when keys are generated client-side, so the private key never leaves your device. Never paste a real private key into any website.

How long does it take to generate an RSA key pair?

A 2048-bit pair usually appears in under a minute, while a 4096-bit pair takes longer because the primes are larger.

What is the difference between RSA and AES?

RSA is asymmetric encryption with a public and private key pair, used for key exchange, signatures, and small messages. AES is symmetric encryption with one shared key, used for bulk data.

Can you convert an RSA key to another format?

Yes. RSA keys can be converted between common formats such as PEM, DER, and OpenSSH with standard command-line tools. Never paste a real private key into a conversion website.

What should you do if your private key is leaked?

Generate a fresh pair at once, install the new public key everywhere the old one was used, and treat anything encrypted to the old key as readable by whoever holds the leak.

RSA keys are a simple idea with serious consequences: one half shared, one half guarded, and the maths in between doing the rest. Generate a pair with the RSA Key Generator and store the private key as if it were the only copy.

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