Ed25519 Key Pair Generator
Create a new Ed25519 key pair with your browser WebCrypto and get PEM private and public keys, an OpenSSH public key line and the raw hex values.
Use the tool
Why this tool exists
Ed25519 keys are short and fast, and they are now the default recommendation for SSH and many signing systems. Sometimes you just need a throwaway pair for a test, a CI fixture or a quick experiment, without opening a terminal.
This generator asks your browser crypto engine for a fresh key, then exports it in the formats people ask for: PKCS#8 for the private key, SPKI for the public key, the one-line ssh-ed25519 form, and the 32-byte seed and public key in hex. Nothing is uploaded. For long-lived keys that guard real systems, generate them on the machine that will use them, with ssh-keygen or your key management tooling.
How to use it
- Open the tool and press the button to generate a key pair.
- Copy the PKCS#8 private PEM, public PEM or the ssh-ed25519 line you need.
- Store the private key safely, and never share it.
Frequently asked questions
Is it safe to use these keys for real systems?
The randomness comes from your browser, which is generally sound, but a web page is not an ideal place to create long-lived secrets. For production keys, generate them on the target machine with ssh-keygen.
Why does it say my browser is unsupported?
Ed25519 in WebCrypto needs a recent browser: current Chrome and Edge, Firefox 129 or newer, or Safari 17 or newer. Older versions throw an error.
Is a passphrase added?
No. The private key is exported unencrypted. If you save it to disk, protect the file or encrypt it with your own tooling.
How do I use the public key line for SSH?
Append the ssh-ed25519 line to authorized_keys on the server. SSH needs the private key in OpenSSH format, so convert the PKCS#8 file with ssh-keygen if required.