About this tool
One place to create asymmetric keys for signing tokens, testing TLS code or configuring services. Choose the algorithm, then copy the result as PEM, as JSON Web Keys or as OpenSSH lines; every format describes the same key pair. Keys are produced by WebCrypto inside your browser.
How to use Key Pair Generator
- Choose an algorithm such as Ed25519 or ECDSA P-256.
- Click Generate key pair.
- Open the tab for the format you need: PEM, JWK or OpenSSH.
- Copy or download the public and private parts.
Frequently asked questions
Which algorithm matches ES256, ES384 or EdDSA in JWTs?
ES256 uses ECDSA P-256, ES384 uses P-384, ES512 uses P-521 and EdDSA uses Ed25519.
Why is Ed25519 greyed out?
A few older browsers lack Ed25519 in WebCrypto. Update the browser or pick ECDSA instead.
Can I share the public key?
Yes, the public key is meant to be shared. Keep the private key secret.