RSA Key Pair Generator

Generate RSA-OAEP key pairs (2048 or 4096-bit) instantly in your browser using the Web Crypto API. Keys are exported in PEM format — compatible with OpenSSL, Node.js, Python, and most TLS libraries. Nothing is sent to any server.

60K+ developers trust DevPlaybook Web Crypto API — OS-level randomness No data leaves your machine

Frequently Asked Questions

What is RSA encryption?

RSA is an asymmetric cryptographic algorithm that uses a pair of mathematically linked keys: a public key (for encryption or signature verification) and a private key (for decryption or signing). It's widely used for SSL/TLS, SSH, and secure key exchange.

What is the difference between 2048-bit and 4096-bit RSA?

4096-bit keys are stronger than 2048-bit but are slower to generate and use. 2048-bit is considered secure for most uses through 2030+. 4096-bit provides extra margin for highly sensitive long-lived keys.

What format are the generated keys?

Public keys are exported in SPKI (SubjectPublicKeyInfo) format, encoded as PEM. Private keys use PKCS#8 format, also PEM-encoded. These formats are compatible with OpenSSL, Node.js crypto, Python cryptography, and most TLS libraries.

Are the keys generated securely?

Yes. Keys are generated using the browser's built-in SubtleCrypto Web Crypto API, which uses the operating system's cryptographically secure random number generator. Keys are never sent to any server.

Looking for more free developer tools?

Browse All Free Tools →
Share this tool: X / Twitter LinkedIn

Related Products

on Gumroad

More Free Tools

Get weekly developer tips

Tool guides, productivity playbooks & AI tricks. Free. No spam.

DevPlaybook Pro 7 days free

Unlock AI-Powered Dev Tools

  • ⚡ AI Code Review, Doc Generator & SQL Builder
  • ⚡ All premium templates & early access
  • ⚡ Member discounts on Gumroad products
Start Free Trial →

$9/mo after trial · Cancel anytime

Want the full toolkit?

Get DevPlaybook Pro

Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.

$79
$241 separately Save $162 (67% off)
Get DevPlaybook Pro — $79 →

MIT licensed · Instant download · No subscription

See what's included → Browse all deals →