PGP Encrypt & Decrypt Online
Paste a PGP public key and a message to encrypt, or a private key and ciphertext to decrypt. The tool checks each block is the right kind of armored PGP data, then does the crypto in your browser with OpenPGP.js.
This PGP tool lets you encrypt online to someone’s public key, or work as a pgp decrypt tool with your own private key and passphrase — all in the browser, powered by OpenPGP.js. Paste an armored key and it tells you, live, whether you gave it a public key, a private key, or a PGP message, so you catch a wrong paste before you run anything. Encrypting produces a standard -----BEGIN PGP MESSAGE----- block you can send; decrypting takes that block plus your private key and returns the plaintext. Because it is a client-side gpg online tool, the openpgp encrypt message step and the keys never touch a server, and the crypto library only loads the moment you press the button.
—
How it works
- 1
Pick encrypt or decrypt
Use the toggle at the top. Encrypt takes a public key and plaintext; decrypt takes your private key, passphrase and a PGP message.
- 2
Paste your key and text
Drop in the armored key block and the message. The tool confirms in real time whether each block is a valid public key, private key or PGP message.
- 3
Run it
Press Encrypt or Decrypt. The armored ciphertext or the recovered plaintext appears on the right, ready to copy.
Instant & 100% private — nothing is uploaded
Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.
Frequently asked questions
- Does the encryption really happen in my browser?
- Yes. It uses OpenPGP.js locally, so your keys, passphrase and messages never leave the page. There is no server call and nothing is logged.
- What key formats does it accept?
- Standard ASCII-armored PGP blocks: -----BEGIN PGP PUBLIC KEY BLOCK----- for encrypting, -----BEGIN PGP PRIVATE KEY BLOCK----- for decrypting, and -----BEGIN PGP MESSAGE----- for the ciphertext. It flags anything that is not the block the current mode expects.
- My private key has a passphrase — will that work?
- Yes. Enter it in the passphrase field in decrypt mode and the tool unlocks the key before decrypting. If the key is not passphrase-protected, leave it blank.
- Is it safe to paste my private key here?
- Everything stays in your browser, but pasting a private key into any web page carries some risk. For high-value keys, a local client like GnuPG is the safer choice.
- Can the recipient open the message with any PGP client?
- Yes. The output is a standard OpenPGP message, so whoever holds the matching private key can decrypt it in GnuPG, Thunderbird, or any RFC 4880 client — not just this openpgp encrypt message tool.
More tools
More from the Hivly network
Free sister tools on our other sites.