Skip to content
ToolsOnDuty - free online tools
Security & Cryptography

PGP Key Generator

Generate a PGP/OpenPGP public and private key pair.

Free browser toolRuns in your browserNo sign-up
Loading PGP key generator...

Browser-side processing

This tool is designed to process your input on your device. Some operations download additional code when first used, so loading the page alone does not guarantee offline availability. Review the tool's disclosures and use your browser's Network tab to distinguish dependency downloads from requests containing input.

About the PGP Key Generator

Generate a PGP (OpenPGP) key pair for encrypting messages and files or signing them.

Choose modern ECC (Curve25519) or RSA 4096, add a name, email and optional passphrase, and get armored keys.

Keys are generated in your browser with OpenPGP.js and never leave your device.

Key features

  • ECC (Curve25519) or RSA 4096 keys
  • Optional name, email and passphrase
  • Armored public and private keys
  • Runs entirely in your browser

How to use

  1. 1Enter a name, email and optional passphrase.
  2. 2Choose the key type and generate.
  3. 3Copy the public and private keys.

Examples

ECC key
Input: name, email, passphrase
Output: Armored public and private keys

Curve25519 keys are short and fast.

RSA key
Input: RSA 4096
Output: Larger, widely compatible keys

Choose RSA where a system needs it.

Frequently asked questions

Should I set a passphrase?
Yes, for real use. The passphrase encrypts your private key so it is useless to anyone who copies it without the passphrase.
ECC or RSA?
ECC (Curve25519) is modern, fast and has small keys. RSA 4096 is widely compatible but slower. Choose ECC unless a system requires RSA.
Are the keys uploaded?
No. They are generated locally with OpenPGP.js. You can verify this by disconnecting your internet after the page loads.

Open a related tool to prepare your files or refine the finished result.