id_ed25519 and id_rsa key pairs in OpenSSH format, ready for ~/.ssh
Key Pair Generator
Make a signing key pair in the format your library, server or JWT setup needs, without installing OpenSSL.
Loading tool…
How to use key pair generator
Pick a key type: Ed25519 unless you need ECDSA or RSA for compatibility.
Optionally add a comment to label the key.
Generate, and wait for the round-trip check.
Copy or download the public and private keys in the format you need.
What this tool does
- Ed25519, ECDSA on P-256, P-384 and P-521, and RSA 2048, 3072 and 4096.
- PEM as SPKI and PKCS#8 for every type, plus PKCS#1 for RSA.
- JWK for JWT and JOSE libraries, and OpenSSH public and private keys.
- SHA-256 fingerprint in the same form ssh-keygen prints.
How the result is verified
Every export is imported again: the PKCS#8 key signs a random message that the SPKI key verifies, the OpenSSH private key is parsed back and signs for the OpenSSH public line, and the two formats are cross-checked so they hold the same key. A tampered message must fail to verify.
Frequently asked questions
Which key type should I pick?
Ed25519 for anything new: short keys, fast, hard to misuse. ECDSA P-256 where Ed25519 is not supported, such as some JWT (ES256) setups. RSA 3072 or 4096 only for older systems that need it.
Is a key made in a browser safe?
The browser's Web Crypto uses the operating system's secure random source, the same as OpenSSL. The key exists only in this tab until you save it.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
RSA 2048 to 4096 keys as PKCS#8, PKCS#1, SPKI, JWK and OpenSSH
Build and sign HS256, HS384 and HS512 tokens from your own claims
Decode JWT claims, see expiry, verify HMAC and public key signatures
Random keys for JWT, HMAC, AES and sessions as hex, Base64 or Base64URL