PGP Key Generator
// Generate PGP-style RSA key pairs in the browser
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. #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. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.
#FAQ
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.
</> Embed this tool ▾
Copy this code to embed the tool on your website. Adjust the height to fit your layout.
<iframe src="https://www.browserutils.dev/embed/pgp-key-generator" width="100%" height="500" frameborder="0" title="PGP Key Generator"></iframe>