PGP / OpenPGP Key Pair Generator
Generate a modern Curve25519 PGP key pair in your browser.
About this tool
This generator creates a modern OpenPGP key pair using Curve25519 (fast, secure elliptic-curve cryptography) via OpenPGP.js. Enter a name and email for the user ID, optionally protect the private key with a passphrase, and receive both keys in standard ASCII-armored format.
Keys are generated inside your browser and never transmitted. Share the public key so others can encrypt messages to you; keep the private key secret to decrypt them and to sign. Use the PGP encrypt/decrypt tool to put the keys to work.
Like everything on encrypt.tools, this runs entirely in your browser — nothing you enter is transmitted or stored.
Frequently asked questions about PGP Key Generator
Should I set a passphrase on my PGP key?+
Yes, for any key you'll keep. The passphrase encrypts your private key so a stolen key file is useless without it. Only skip it for throwaway or testing keys.
Why Curve25519 instead of RSA?+
Curve25519 keys are far smaller and faster than equivalent RSA keys while offering comparable security, and they avoid RSA's parameter pitfalls. Modern GnuPG and most PGP tools support them. RSA support may be added later.
Are these keys generated on a server?+
No. Key generation runs in your browser using OpenPGP.js and your device's secure random generator. Nothing about the key is sent anywhere — closing the tab discards it, so save the private key before leaving.
Related tools
RSA Key Generator
Generate RSA key pairs and export them as PEM
RSA-OAEP · SHA-256RSA Encrypt / Decrypt
Encrypt with a public key, decrypt with a private key
ECDSA · P-256/384/521ECC Key Generator
Generate P-256, P-384, and P-521 key pairs as PEM
ED25519 · X25519Ed25519 / X25519 Keys
Modern Curve25519 signing and key-exchange keys