OnlinePGP - Free PGP encryption that never leaves your browser | Product Hunt

Generate PGP Keys, Encrypt, Decrypt & Sign Messages

OnlinePGP is a free, client-side OpenPGP tool that runs in your browser with OpenPGP.js, so your keys and messages are not uploaded to our server. You can generate 2048-bit PGP key pairs, encrypt or decrypt messages, and sign or verify text, or open the focused PGP encryption tool and PGP decrypt pages.

Client-side Open-source No signup Free

Verification result will be displayed here

How does OnlinePGP work?

OnlinePGP runs OpenPGP.js in your browser so you can generate a key pair, encrypt or decrypt a message, and sign or verify text without sending keys or message contents to our server.

1. Generate Keys

Create a 2048-bit RSA key pair locally in your browser. Share your public key and keep your private key secret.

2. Encrypt & Decrypt

Lock messages with a recipient's public key so only their private key and passphrase can unlock them. Use the PGP encryption tool or PGP decrypt when you want that tab to open first.

3. Sign & Verify

Prove message authorship with your private key and verify incoming signed text using the sender's public key.

▶ Animated demo

This is an animation — use the tool above to encrypt for real.

How do I publish my public key?

A public key is only useful if other people can find it and check that it belongs to you. Publishing it on keys.openpgp.org lets contacts look it up with just your email address, then encrypt messages to you or verify your signatures. The keyserver publishes an identity only after you confirm the verification email, which keeps the directory cleaner than older keyservers.

  1. Generate your key pair

    Use the Generate Keys tab at the top of this page. Enter your name, a valid email address, and a strong passphrase, then create the key pair locally in your browser.

  2. Export the public key only

    Download or copy only the public key, the ASCII-armored .asc block. Never upload, email, or paste your private key on a keyserver. Anyone who has the private key can read your messages and impersonate you.

  3. Open the upload page

    Go to keys.openpgp.org/upload in your browser. That is the official verifying keyserver for this step.

  4. Upload the .asc file

    Upload your public key file, or paste the public key block, and submit it. Double-check that the block starts with BEGIN PGP PUBLIC KEY BLOCK.

  5. Confirm the verification email

    Open the message from the keyserver and click the confirmation link. Until you do that, your identity stays unpublished. After it is confirmed, other people can find your key by email at keys.openpgp.org/search, or from GnuPG with:

    gpg --keyserver hkps://keys.openpgp.org --search-keys you@example.com

For more on sharing keys safely, read How to Share Your Public Key and Verify Fingerprints.

Is OnlinePGP private and client-side?

All cryptographic operations (key generation, encryption, decryption, signing, and verification) run locally in your browser via OpenPGP.js. Your keys, passphrases, and messages are never transmitted to or stored on our server. You can inspect the open-source code on GitHub. This website uses cookies and third-party services (Google Analytics and Google AdSense) for traffic analysis and advertising. Read our Privacy Policy for full details.

What other security tools are available?

Need to encrypt a message, decrypt a PGP message, inspect a key, or encrypt a file? Explore our free client-side security tools:

Where can I learn PGP and encryption best practices?

OnlinePGP publishes free English guides on how PGP works, how to generate a key, how to encrypt and decrypt a message, and how to use PGP with email. Start with a guide below, then come back to the tool. The step-by-step tutorial is How to Encrypt and Decrypt a Message with PGP.

Frequently Asked Questions

What is PGP?

PGP, short for Pretty Good Privacy, is a public-key system for encrypting and signing messages so only the intended recipient can read them, and so others can check that a message really came from you. This site implements the OpenPGP standard in your browser with OpenPGP.js 6.3.3.

Is OnlinePGP safe and private?

The cryptographic work runs entirely in your browser with OpenPGP.js 6.3.3. Your keys, passphrases, and messages are never sent to or stored on our server. You can inspect the open-source code on GitHub. Like any browser tool, it is a good fit for everyday privacy and learning. For high-risk or life-critical secrets, an offline program such as GnuPG is a safer choice. The site also uses cookies and advertising, which are described in the Privacy Policy. Every script is loaded with Subresource Integrity, so the browser refuses a modified file, and the Verify this site page compares the live files with the MIT-licensed GitHub source in one click.

How do I generate a PGP key pair?

Use the tool at the top of this page. Enter your name, a valid email address, and a strong passphrase, then choose Generate New PGP Keys Pair. The 2048-bit RSA key pair is created locally in your browser. Download and back up your private key, and share only your public key. You can also publish that public key on keys.openpgp.org so others can find it by email.

What is the difference between a public key and a private key?

Your public key is safe to share. Other people use it to encrypt messages to you and to verify signatures you create. Your private key must stay secret. You use it, together with your passphrase, to decrypt messages and to sign text. Anyone who has your private key can read your messages and impersonate you.

How do I encrypt or decrypt a message with PGP?

To encrypt, paste the recipient's public key and your message into the PGP encryption tool, then encrypt. Only someone with the matching private key can decrypt it. To decrypt, paste your private key, your passphrase, and the encrypted message into the PGP decrypt page. Signing works the other way: you sign with your private key, and others verify with your public key.

What happens if I lose my PGP passphrase?

There is no recovery option. OnlinePGP never sees your passphrase or your keys, so we cannot reset them. If you lose the passphrase, you cannot unlock that private key, and you cannot decrypt messages that were encrypted to it. Back up your private key in a safe place and store the passphrase in a password manager when you generate a new key.

Is OnlinePGP free to use?

Yes. The tool is free to use in your browser, with no account and no paid plan. The site is supported by advertising, as described in the Privacy Policy.

Does OnlinePGP work with GPG, Kleopatra, and Mailvelope?

Yes. OnlinePGP generates standard OpenPGP keys and messages, so they are widely compatible with GnuPG (GPG), Kleopatra, Mailvelope, Mozilla Thunderbird, and Proton Mail, as long as the other program also speaks OpenPGP.

What kind of keys does OnlinePGP generate?

The tool generates standard OpenPGP v4 2048-bit RSA key pairs, created locally with OpenPGP.js 6.3.3. These keys are widely compatible with GnuPG, Mozilla Thunderbird, and Proton Mail.

Can I use OnlinePGP offline?

Yes. After your first visit, the PGP tools are saved in your browser, so key generation, encryption, decryption, signing, and verification keep working without an internet connection. You can also install OnlinePGP as an app from your browser menu (Install app or Add to Home Screen). Tip: disconnect from the network before you paste a private key, so nothing can leave the device even by accident.

How do I report a security vulnerability in OnlinePGP?

Email contact@onlinepgp.com, ideally encrypted to the OnlinePGP public key at onlinepgp.com/pgp-key.asc (fingerprint 27EB F294 F077 65D2 6FB2 232E 7BC4 8481 08DB 6435). The same contact details are published in a signed security.txt file at onlinepgp.com/.well-known/security.txt, which follows RFC 9116.

How do I publish my public key on keys.openpgp.org?

Export only your public key from the tool at the top of this page, then upload the .asc file at keys.openpgp.org/upload. Open the verification email and click the confirmation link. After that, other people can find the key by your email address on the keyserver, or from GnuPG with the command below. Never upload your private key.

gpg --keyserver hkps://keys.openpgp.org --search-keys you@example.com
Why should I publish my public key on a keyserver?

It makes your key discoverable. Contacts can look it up with your email, encrypt messages to you, and verify signatures you create, without you having to send the key file each time. keys.openpgp.org only publishes an identity after you confirm the verification email, which keeps the directory cleaner than older keyservers.

What if my PGP key is compromised?

Stop using the key and upload a revocation certificate to the same keyserver so others know not to trust it. Create and store a revocation certificate in a safe place when you generate a new key, for example with GnuPG. Then generate a new key pair and share the new public key.