Generate asymmetric key pairs with the Web Crypto API and export them in the formats most libraries expect. Keys are created inside your browser and are never transmitted.

  • RSA: 2048, 3072 or 4096 bits, for signing (RSASSA-PKCS1-v1_5 for RS256, RSA-PSS for PS256) or encryption (RSA-OAEP). 4096-bit generation can take a few seconds.
  • ECDSA: P-256, P-384 and P-521 curves (ES256/ES384/ES512), plus ECDH P-256 for key agreement and Ed25519 where the browser supports it.

Each pair is shown as a PKCS#8 private key (BEGIN PRIVATE KEY), an SPKI public key (BEGIN PUBLIC KEY) and as JWK objects for use with JOSE libraries or a JWKS endpoint. The algorithm choice is recorded in the JWK (alg, key_ops), so pick the one matching how you will use the key.

Private keys are exported unencrypted. For long-lived production keys, generate them on the machine or KMS where they will live; this tool is ideal for test fixtures, local development and quick experiments.