Key pair generator
Generate Ed25519, RSA and ECDSA key pairs as PEM, JWK and an OpenSSH public key.
Key type
Choose a key type, then select Generate.
Missing a feature or found a bug in Key pair generator? Tell me on X (@_andrewtran) or by email.
How to use Key pair generator
- Choose a key type. Ed25519 is a good default.
- Select Generate.
- Copy or download the public key and the private key.
Questions and answers
Are my keys sent anywhere?
No. They are made by your browser on this device and are not stored. Once you leave the page they are gone.
Which type should I pick?
Ed25519 for SSH and new systems: the keys are short and fast. RSA 3072 or 4096 where an older system needs RSA.
What format is the private key in?
PKCS#8 PEM, which most libraries and servers read. For a key in the file format ssh-keygen writes, with a passphrase, use ssh-keygen itself.
Related tools
Hex viewer
See the raw bytes of any file in hex and ASCII, with search and jump to offset.Browser info
See what your browser reports: screen size, pixel ratio, languages, settings and supported features.Regex match extractor
Pull every regex match or capture group out of a text into a list, or split text on a pattern.Nano ID generator
Generate short, URL-safe random IDs of any length, with a choice of character sets.