PGP / OpenPGP Message Encryptor & Decryptor
Encrypt with a public key, decrypt with a private key.
About this tool
PGP (Pretty Good Privacy) is the standard for end-to-end encrypted email and file sharing. This tool uses OpenPGP.js — the audited JavaScript implementation of the OpenPGP standard (RFC 4880/9580) — to encrypt a message so only the holder of the matching private key can read it, and to decrypt messages sent to you.
All cryptography happens in your browser. Paste an armored public key to encrypt, or your armored private key (with its passphrase, if protected) to decrypt. Your keys and messages are never transmitted. Pair this with the PGP key generator to create a key pair first.
Like everything on encrypt.tools, this runs entirely in your browser — nothing you enter is transmitted or stored.
Frequently asked questions about PGP Encrypt / Decrypt
Is it safe to paste my PGP private key here?+
The cryptography runs entirely in your browser via OpenPGP.js — your private key is never sent to any server. That said, for high-value keys the safest practice is always local software like GnuPG on a machine you control. Inspect the page source or use this for lower-stakes keys and testing.
What key types does this support?+
It reads standard armored OpenPGP public and private keys, including RSA and modern elliptic-curve (Curve25519) keys such as those made by the PGP key generator on this site or by GnuPG.
My key is passphrase-protected — how do I decrypt?+
Switch to decrypt mode, paste your private key, and enter its passphrase in the passphrase field. The key is unlocked in memory only for the operation and never stored.
Can I encrypt files, not just text?+
This tool handles text messages. For files, encrypt the text content or use desktop GnuPG; file support is on the roadmap.
Related tools
RSA Key Generator
Generate RSA key pairs and export them as PEM
RSA-OAEP · SHA-256RSA Encrypt / Decrypt
Encrypt with a public key, decrypt with a private key
ECDSA · P-256/384/521ECC Key Generator
Generate P-256, P-384, and P-521 key pairs as PEM
ED25519 · X25519Ed25519 / X25519 Keys
Modern Curve25519 signing and key-exchange keys