Skip to content

Menu

PGP Key Generator

Generate PGP/GPG key pairs (RSA/ECC)

Runs entirely in your browserAuth & SecurityFree, no sign-up
Loading tool

01What is PGP Key Generator?

PGP Key Generator builds a real OpenPGP version 4 key in your browser. It follows RFC 4880 for the packet format and RFC 6637 for the elliptic-curve parts. The random key material comes from the Web Crypto API. The tool then writes the OpenPGP packets itself, so you get a normal transferable key you can import with gpg --import. Each key has the same basic shape that gpg --full-generate-key makes. There is a primary key flagged for certifying and signing, and a user ID in the form Name <email>. A self-signature binds the two. A separate encryption subkey is attached with a subkey-binding signature. You pick one of four algorithms. RSA 2048-bit and RSA 4096-bit each create two RSA keys, signed with SHA-256. ECDSA/ECDH P-256 creates an ECDSA primary key and an ECDH subkey on the NIST P-256 curve, signed with SHA-256. The P-384 option does the same on P-384 with SHA-384. The self-signature also lists your algorithm preferences: AES-256, AES-192 and AES-128 for ciphers, SHA-512, SHA-384 and SHA-256 for hashes, and ZLIB then ZIP for compression. It sets the modification-detection feature flag and marks the user ID as primary. What you see after clicking Generate: the algorithm, a 40-hex-digit fingerprint in groups of four, a 16-digit key ID, the creation time, and two ASCII-armored blocks. The fingerprint is the SHA-1 of the public key packet, as RFC 4880 defines for v4 keys. The key ID is its last 16 hex digits. Armor uses the standard CRC-24 checksum line. Here's a run from our scratch test with Name Ada Test and Email [email protected] on P-256. It reported ECDSA + ECDH NIST P-256 and a fingerprint of 150D F24D 419A 64AC A402 7D8A D56E 4526 9B99 6FD2. The key ID was D56E45269B996FD2, the last 16 digits of that fingerprint. The public block was about 700 characters. Your own run will differ, since every key is random. Now the limits. The private key has no passphrase and no expiry date, so add both in GnuPG after you import it. Ed25519 and Curve25519 keys, which GnuPG now uses by default, aren't offered. The email field isn't checked for a valid address. It goes into the user ID exactly as typed, after trimming spaces. The key exists only in the page until you copy it, so a refresh loses it.

Developers who need an importable OpenPGP key for commit signing or for testing encryption code, without installing GnuPG first. The tool runs entirely in your browser, so your data never leaves your device.

02How to use PGP Key Generator

  1. Pick an Algorithm: RSA 2048-bit, RSA 4096-bit, ECDSA/ECDH P-256 or ECDSA/ECDH P-384.
  2. Fill in Name and Email. The Generate button stays disabled until both have text, and together they become the user ID.
  3. Click Generate. RSA 4096 can take a few seconds because it creates two keys.
  4. Check the Algorithm, Fingerprint, Key ID and Generated time shown above the key blocks.
  5. Use Copy on the Public Key and Private Key blocks, save the private key to a file and run gpg --import on it.
  6. Add a passphrase with gpg --edit-key followed by your key ID, then type passwd at the prompt.

03Worked examples

Input: Algorithm RSA 2048-bit, Name Ada Test, Email [email protected]
Result: Algorithm: RSA 2048 bits. Fingerprint: DE70 9431 D265 9DF1 D2C7 FFD7 B88B 3E3F 045F 1596. Key ID: B88B3E3F045F1596
From a scratch run of the tool's own function. Keys are random, so your fingerprint will differ. The public block was 1,733 characters.
Input: Algorithm RSA 4096-bit, same name and email
Result: Algorithm: RSA 4096 bits. Fingerprint: 5CB6 476E 061C D42D 2353 3FCC E0C3 07EE CDEE 5224. Key ID: E0C307EECDEE5224
Public block 3,118 characters, private block 6,618.
Input: Algorithm ECDSA/ECDH P-256, same name and email
Result: Algorithm: ECDSA + ECDH NIST P-256. Fingerprint: 150D F24D 419A 64AC A402 7D8A D56E 4526 9B99 6FD2. Key ID: D56E45269B996FD2
Public block 709 characters. The key ID is always the last 16 hex digits of the fingerprint.
Input: Algorithm ECDSA/ECDH P-384, same name and email
Result: Algorithm: ECDSA + ECDH NIST P-384. Fingerprint: 6AF2 348F C504 C8EF C3AC 67BC CD5E B73D E6C3 728B. Key ID: CD5EB73DE6C3728B
Public block 876 characters.
Input: Public Key block (any algorithm)
Result: -----BEGIN PGP PUBLIC KEY BLOCK-----, a blank line, Base64 lines, a =XXXX CRC-24 checksum line, -----END PGP PUBLIC KEY BLOCK-----
Trimmed to the structure. The checksum from the RSA 2048 run was =XfdZ.

04Common use cases

  • Making a throwaway key to sign git commits on a borrowed or locked-down machine where gpg isn't installed
  • Creating test keys for an OpenPGP encryption feature, a CI signing step or a package-signing pipeline
  • Producing RSA and NIST-curve keys side by side to check that a library or service accepts each type
  • Setting up a demo of encrypted email in Thunderbird or another OpenPGP client during a workshop
  • Showing students how a primary key, user ID, self-signature and encryption subkey fit together in one block
  • Checking how a key server or your own upload form handles a fresh v4 public key

05Tips

  • Run gpg --import-options show-only --import key.asc to look at a key before you add it to your keyring.
  • For git signing, set git config user.signingkey to the Key ID shown here and add the public block to your GitHub or GitLab account.
  • The ECDSA options give much shorter keys than RSA. In our runs a P-256 public block was about 700 characters and an RSA 4096 one was about 3,100.
  • Copy the private key before you refresh or switch algorithms. Nothing is saved, so a reload means generating a new key.
  • Never paste the private key into chat, a ticket or a repo. Until you add a passphrase in GnuPG it is unprotected.

06Related concepts

OpenPGP, GnuPG, RFC 4880, Key fingerprint, Encryption subkey, ECDH.

Frequently Asked Questions

What is PGP Key Generator?

PGP Key Generator is a free, browser-based developer tool on AIDToolStack. Generate PGP/GPG key pairs (RSA/ECC) It requires no installation or sign-up and works entirely in your browser.

Is PGP Key Generator free to use?

Yes. No sign-up, no fees and no usage cap.

Does PGP Key Generator store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe