Skip to content
Convertto

RSA & ECDSA Key Pair Generator

Generate an RSA or elliptic-curve key pair in your browser, exported as PEM or JWK.

This generates an RSA, ECDSA or Ed25519 key pair using your browser's WebCrypto API and exports it as PEM or JWK. ECDSA with P-256 gives the same 128-bit security as RSA-3072 in a fraction of the size, which is why it is the better default for anything new.

Runs in your browser
Generated by
The browser's WebCrypto API, using the OS cryptographic random source
Never transmitted
The private key exists only in this page's memory
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

Is it safe to generate keys in a browser?

WebCrypto uses the same OS random source as command-line tools, so the key itself is sound. The risk is the surrounding environment — browser extensions, screen capture and clipboard history all see the page. For a production key, use ssh-keygen or openssl on the target machine.

RSA or elliptic curve?

Elliptic curve, for anything new. ECDSA P-256 matches RSA-3072 for security while being roughly a tenth the size and far faster to generate. Choose RSA only when you must interoperate with something that cannot do EC.

How to use the rsa & ecdsa key pair generator

  1. 1Choose the algorithm.
  2. 2Choose the curve.
  3. 3Choose the key size.
  4. 4Choose the purpose.
  5. 5Choose the export as.
  6. 6Press Run, then download the result when it is ready.

Embed this tool

Put the working rsa & ecdsa key pair generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More hash & crypto tools