PGPKeygenerator.com is an open-source, client-side tool designed for privacy. We utilize OpenPGP.js, a battle-tested open-source JavaScript library, to handle all cryptographic functions.
Yes. We believe encryption should be accessible to everyone. The tool is free to use for personal and commercial purposes. If the tool helped you, consider donating to keep the project alive.
While we take every precaution to ensure safety (HTTPS, client-side execution), browser-based cryptography has inherent risks compared to command-line tools.
PGP is designed to be impossible to break by force. This means:
PGPKeygenerator.com simplifies the process:
Yes. The keys generated here adhere to the OpenPGP standard (RFC 4880/9580). They are fully compatible with:
Yes. Unlike many other online tools, PGPKeygenerator.com automatically generates a revocation certificate for you alongside your keys.
A revocation certificate is a special file used to invalidate your key if your Private Key is ever lost or stolen. You should store this file in a separate, secure location (like an offline USB drive). Without it, you cannot warn the PGP network that a compromised key should no longer be trusted.
PGPkeygenerator.com implements the WebMCP API (also known as
navigator.modelContext), an emerging browser standard that allows web pages to expose tools
to AI agents and MCP-compatible clients running in the browser.
This page registers a generate_pgp_keys tool that any compatible AI agent can call to
generate a PGP key pair entirely client-side — no server involved, no data leaves your browser.
name (required) — Full name for the PGP user ID, e.g.
"Alice Smith"email (required) — Email address, e.g. "alice@example.com"type — Key algorithm: "ecc" (default, recommended) or "rsa"
keySize — RSA key size: 2048 or 4096 (default). Only used
when type is "rsa".passphrase — Optional passphrase to protect the private key.expirationTime — Expiration in seconds from now. 0 = never expires
(default).chrome://flags#webmcp-for-testing in
Chrome Canary 146+, then install the
Model Context Tool Inspector
extension. Open this site and invoke the generate_pgp_keys tool with
{ "name": "Alice Smith", "email": "alice@example.com" }.
If you have any further questions or encounter issues, please contact the author for assistance.