RSA Key Generator

Generate an RSA key pair right in your browser. Choose 2048, 3072 or 4096 bits and the intended use, and get the public and private keys as PEM, the public key as JWK and as an OpenSSH line with its SHA256 fingerprint — ready to download. Nothing is stored or uploaded.

RSA key sizes (NIST SP 800-57)

SizeSecurity strengthUse until
2048112 bits2030
3072128 bitsBeyond 2030
4096~150 bitsBeyond 2030

When to use it

  1. Create keys for signing JWTs (RS256).
  2. Generate a key pair for encryption tests.
  3. Make an SSH public key for a server or Git host.
  4. Produce test keys for development and CI.

How to Use

  1. Pick the key size and usage.
  2. Click Generate.
  3. Copy or download the keys.

Features

  1. 2048, 3072, 4096 bits
  2. PEM (SPKI and PKCS#8)
  3. JWK
  4. OpenSSH public key
  5. SHA256 fingerprint
  6. Never stored

FAQs

What key size should I use?

3072 bits for use beyond 2030; 2048 is the minimum.

Is it safe to generate keys in a browser?

Web Crypto uses the OS's secure random generator and keys never leave the page. For production secrets many teams still prefer generating on the server.

Which format is the private key?

PKCS#8 PEM, readable by OpenSSL, Node, Java, Python and Go.

Can I use it for SSH?

Yes, though Ed25519 keys from ssh-keygen are preferred for SSH today.

Are the keys saved anywhere?

No. Close the tab and they're gone.

Technical Details

Keys are generated by the browser's Web Crypto generateKey with public exponent 65537 and a cryptographically secure random source, for RSASSA-PKCS1-v1_5 (RS256), RSA-PSS (PS256) or RSA-OAEP. The key material is the same whichever you pick; the choice only sets the algorithm label on the JWK. The public key is exported as SPKI and the private key as PKCS#8 DER, Base64-encoded in 64-character lines inside -----BEGIN PUBLIC KEY----- and -----BEGIN PRIVATE KEY----- armour. The OpenSSH public key is built per RFC 4253: the string 'ssh-rsa', then the exponent and modulus as mpints, each with a leading zero byte when its top bit is set. Its fingerprint is the unpadded Base64 SHA-256 of that blob, matching ssh-keygen -lf. Keys live only in the page's memory and are never stored or sent.

Security Tools

Security Tools

  • SRI Hash Generator
  • Permissions-Policy Builder
  • htpasswd Generator
  • Common Port Reference
  • Google Dork Generator
  • Google Search Operators
  • CRC Generator
  • Vigen\u00e8re Cipher