JustGenerator
Security & Keys 100% Client-Side Privacy

Ed25519 Key Pair Generator

Create compact 256-bit Ed25519 signing keys in standard PKCS#8 / SPKI PEM and RFC 8037 OKP JWK formats locally inside your browser using the Web Crypto API.

Ready to generate locally via Web Crypto Ed25519.

Why Ed25519 has replaced RSA in modern signing stacks

Comparing a 2048-bit RSA key pair to an Ed25519 key pair side by side makes the appeal obvious right away. A 2048-bit RSA private key in PEM format spans 28 lines and roughly 1,700 characters; an Ed25519 PKCS#8 private key fits on 3 lines (119 characters). More importantly, Ed25519 generates a key pair in under a millisecond, signs thousands of messages per second on modest CPUs, and derives its signing nonce deterministically from the private key and message hash so a weak random number generator during signing can never leak your private key.

This page invokes your browser's native crypto.subtle.generateKey({ name: "Ed25519" }, true, ["sign", "verify"]) API. Every byte stays in local browser memory with zero network calls. Switching between PEM, RFC 8037 OKP JWK, and Raw Hex formats reformats the same active key pair without regenerating it.

Where PEM, OKP JWK, and raw 32-byte hex keys are used

  • PKCS#8 and X.509 SPKI PEM files load straight into Node.js crypto.sign(null, data, privateKey), Python's cryptography library, Go's x509.ParsePKCS8PrivateKey, and OpenSSL 3.
  • OKP JWK JSON objects (kty: "OKP", crv: "Ed25519", public x, private d) plug directly into jose, Cloudflare Workers Web Crypto, and OAuth/OIDC EdDSA JWKS endpoints.
  • Raw 32-byte hexadecimal public keys are common in Discord interaction webhook verification, Solana/crypto SDKs, and custom Ed25519 verifier libraries like tweetnacl or @noble/ed25519.

Browser compatibility and CLI equivalents

Native Web Crypto Ed25519 works in Chrome 137+, Safari 17+, and Firefox 129+. If you open this tool on an older browser version, you will see a clear notice instead of a silent failure. When you need to generate an Ed25519 key pair directly on a production server or air-gapped machine, use OpenSSL 3:

openssl genpkey -algorithm ED25519 -out ed25519-private.pem
openssl pkey -in ed25519-private.pem -pubout -out ed25519-public.pem

If your downstream verifier only accepts legacy RS256 keys, switch to our RSA Key Pair Generator. For inspecting signed tokens, pair your keys with our JWT Decoder & Inspector.

Common questions

Is Ed25519 better than RSA for new projects?

For modern SSH, Git commit signing, JWT EdDSA tokens, and API authentication, Ed25519 is faster, produces tiny 32-byte keys, uses deterministic signatures that avoid nonce-reuse bugs, and is designed to make constant-time implementations straightforward, reducing side-channel risk. Stick with RSA 2048 or 4096 only when a legacy appliance or third-party integration does not support Ed25519.

Why are Ed25519 keys so much shorter than RSA keys?

RSA relies on factoring huge integers, requiring 2048 to 4096 bits to achieve roughly 112 to 128 bits of classical security. Ed25519 is built on Curve25519 elliptic-curve cryptography, which reaches 128-bit classical security in just 256 bits (32 raw bytes).

What is the difference between Ed25519 PEM and OKP JWK format?

PEM wraps the ASN.1 DER SubjectPublicKeyInfo (public) or PKCS#8 (private) bytes in Base64 with -----BEGIN PUBLIC KEY----- and -----BEGIN PRIVATE KEY----- headers for OpenSSL, Node.js, Go, and Python. JWK (RFC 8037) stores the raw 32-byte keys in JSON with kty: "OKP" and crv: "Ed25519" for JWKS and Web Crypto.

Does GitHub, GitLab, and OpenSSH support Ed25519?

Yes. OpenSSH has supported Ed25519 since version 6.5 (2014), and GitHub, GitLab, Bitbucket, and AWS EC2 all recommend Ed25519 as the default SSH key type. On the command line, run ssh-keygen -t ed25519 to generate an OpenSSH key file directly.

Can Ed25519 keys be used to encrypt data directly?

No. Ed25519 is strictly a digital signature algorithm (EdDSA). For asymmetric key agreement and encryption over the same underlying Curve25519 curve, protocols use X25519 (ECDH).

Are Ed25519 keys quantum-resistant?

No. Like RSA and ECDSA, Ed25519 would be broken by a large fault-tolerant quantum computer running Shor algorithm. For post-quantum key exchange, modern TLS and OpenSSH pair classic keys with ML-KEM (Kyber) hybrid exchanges.