RSA & EC Key Generator

Generate RSA (PKCS#1/PSS/OAEP, 1024–4096-bit), EC (P-256/384/521), and Ed25519 key pairs. Export as PEM, JWK, or OpenSSH.

How to generate a key pair

  1. Pick a preset for what you need: JWT signing, TLS, SSH, code signing, or encryption. Each one fills in a sensible algorithm, key size, and hash.
  2. Or configure it yourself: RSA (2048 to 4096 bits), EC (P-256, P-384, P-521), or Ed25519.
  3. Optionally set a passphrase to encrypt the private key.
  4. Generate, then copy or download the keys as PEM, JWK, or OpenSSH.

Which key type should I choose?

For SSH, use Ed25519: short keys, fast, and supported by every modern OpenSSH. For JWTs and TLS, EC P-256 is compact and widely supported. Choose RSA 2048 or larger when you need compatibility with older systems; RSA 1024 is too weak for new keys. The OpenSSH output gives you an authorized_keys line and an id_ed25519-style private key, so you don't need to convert anything with ssh-keygen.

Frequently asked questions

Is my private key ever sent anywhere?

No. Keys are generated by your browser's Web Crypto API, using its secure random number generator, and exist only on this page until you copy or download them. Nothing is transmitted or stored.

Does the passphrase use OpenSSH's own encryption?

No. Passphrase-protected private keys are exported as encrypted PKCS#8 PEM, which OpenSSH and OpenSSL both read.

What can I do with the keys next?

Create a certificate signing request with the X.509 Certificate Inspector, sign tokens in the JWT Inspector, or check an SSH key with the SSH Key Inspector.

Related tools

More in Cryptography Tools · All 73 tools