Verification result will be displayed here
How do I generate a PGP key online?
To generate a PGP key pair, enter a name, an email address, and a strong passphrase, then choose GENERATE NEW PGP KEYS PAIR. This page opens the Generate Keys tab of the same client-side tool used on the homepage. OpenPGP.js creates the keys in your browser, and nothing is uploaded to our server.
-
Enter your name and email
These become the user ID on the public key, usually in the form Name <you@example.com>. Use an address you will still use, or a dedicated one if you want a separate identity.
-
Choose a strong passphrase
The passphrase encrypts your private key at rest. Use a long unique passphrase, not a reused website password. A password manager or the passphrase generator can help you create one.
-
Generate the key pair
Choose GENERATE NEW PGP KEYS PAIR. The private key and public key appear in the two output boxes. Keep the private key secret. The public key is what you share.
-
Download and back up both keys
Copy or download each key, including the BEGIN and END lines. Store the private key and the passphrase in a place you control, then clear the form when you are done. After generation, a Proton Pass card can help you store the passphrase in an encrypted vault (affiliate link).
What should I do with the private key and passphrase?
The private key decrypts messages sent to your public key, and it creates signatures. Treat it like a credential. Do not email it to yourself in plaintext, and do not paste it into a site you do not trust. The passphrase unlocks that private key; it is not a substitute for the key, and there is no reset if you forget it.
Share only the public key. Ask contacts to verify the fingerprint before they encrypt to it. You can inspect a public key in the PGP key reader. For backup, revocation, and passphrase advice, follow How to Generate a PGP Key Safely.
How is this page different from the homepage and the key generation guide?
This page is a PGP key generator: the same OpenPGP.js tool as the homepage, with the Generate Keys tab already open, plus short instructions for this job. The homepage is the all-in-one toolkit (generate, encrypt, decrypt, sign, and verify) and remains the place for brand queries such as online PGP.
The article How to Generate a PGP Key Safely is the longer safety guide: user IDs, passphrase strength, backups, and revocation. Use this page to create a key now, and use the guide when you want the full checklist.
Can I use this key in GPG, Thunderbird, or Proton Mail?
Yes. The output is a standard OpenPGP key pair, so you can import the public or private block into GnuPG, Kleopatra, Thunderbird, and other OpenPGP clients if the armor is intact. Proton Mail can also exchange OpenPGP mail with keys generated outside Proton.
After you have a key, encrypt a message on the PGP encryption tool page, or decrypt one on PGP Decrypt. Signing and verification are on PGP Sign and PGP Verify.
Related Tools and Guides
These client-side tools and guides sit alongside this page. The main all-in-one tool remains on the OnlinePGP homepage.
Guides:
Frequently Asked Questions
How do I generate a PGP key online?
Open the Generate Keys tab on this page. Enter a name, an email address, and a strong passphrase, then choose GENERATE NEW PGP KEYS PAIR. Copy or download both keys and store the private key and passphrase safely. The keys are created in your browser and are not uploaded.
Which key can I share?
Share only the public key. Keep the private key and its passphrase secret. Recipients use your public key to encrypt messages to you and to verify signatures you create.
Is this the same tool as the OnlinePGP homepage?
Yes. This is the same client-side OpenPGP.js toolkit, with the Generate Keys tab already open so you can use it as a PGP key generator. The homepage still holds the all-in-one tool and the site's brand pages.
How is this different from the key generation guide?
This page is the tool for creating a key now. How to Generate a PGP Key Safely is the longer guide on user IDs, passphrase strength, backups, and revocation. Use both: generate here, then follow the guide to store the key well.
Does this PGP key generator work with GPG?
Yes. The key pair is standard OpenPGP, so you can import it into GnuPG, Kleopatra, Thunderbird, and similar clients if you keep the armor intact.