Skip to content

PGP Key Generator

Embed

Paste this where you want PGP Key Generator on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/pgp-key-generator/" width="100%" height="500" frameborder="0" loading="lazy" title="PGP Key Generator"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/pgp-key-generator/">PGP Key Generator</a> by BrowserUtils</p>

Generate PGP-style RSA key pairs in the browser.Runs in this tab.

Note: This generates RSA key pairs formatted with PGP-style headers using the Web Crypto API. For real PGP/GPG keys with proper OpenPGP packet structure, use gpg --gen-key.

Next step

About PGP Key Generator

Free online PGP key generator. Generate RSA key pairs with PGP-style formatting using the Web Crypto API. Simplified key generation for learning and testing. It runs in your browser. Nothing is sent to a server.

Questions

Are these real PGP keys?
These are RSA key pairs formatted with PGP-style headers for educational and testing purposes. They use standard RSA cryptography via the Web Crypto API but do not include the full OpenPGP packet structure. For production PGP keys, use GPG (gpg --gen-key) which creates properly formatted OpenPGP keys.
What key size should I use for PGP?
For RSA-based PGP keys, 2048-bit is the minimum recommended size and 4096-bit is preferred for long-term security. The larger key size takes longer to generate but provides a greater security margin against future advances in computing power.
Is the PGP key generator safe to use?
The key generation runs entirely in your browser using the Web Crypto API. Your keys are never transmitted over the network. For production encryption or signing, use the GPG command-line tool which produces fully compliant OpenPGP keys.
What is the difference between PGP and GPG?
PGP (Pretty Good Privacy) is the original encryption program and standard. GPG (GNU Privacy Guard) is a free, open-source implementation of the OpenPGP standard. They are compatible with each other and the terms are often used interchangeably.
Can I use the generated PGP key to encrypt email?
These keys are formatted for learning and testing. For actual encrypted email, generate keys with GPG and import them into an email client that supports OpenPGP, such as Thunderbird with its built-in OpenPGP support.

More in Security & Privacy

All 10 security & privacy