Skip to content
ToolsOnDuty - free online tools
Security & Cryptography

PGP Encrypt & Decrypt

Encrypt a message with a PGP public key and decrypt with a private key.

Free browser toolRuns in your browserNo sign-up
Loading PGP encryption tool...

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 Encrypt & Decrypt

Encrypt a message with someone's PGP public key so only they can read it, or decrypt a message sent to you with your private key.

It uses OpenPGP.js and the standard armored message format that works with GPG and other PGP tools.

Your message, keys and passphrase never leave your device.

Key features

  • Encrypt with a recipient public key
  • Decrypt with your private key and passphrase
  • Standard armored PGP format
  • Runs entirely in your browser

How to use

  1. 1Choose encrypt or decrypt.
  2. 2Paste the message and the matching key.
  3. 3For decrypt, add your private key passphrase.

Examples

Encrypt
Input: message + recipient public key
Output: A -----BEGIN PGP MESSAGE----- block

Only the recipient's private key can open it.

Decrypt
Input: PGP message + your private key
Output: The original message

Add your passphrase if the key is protected.

Frequently asked questions

Whose key do I use to encrypt?
The recipient's public key. Only their matching private key can decrypt the result.
Why does decrypt ask for a passphrase?
If your private key is protected by a passphrase, it is needed to unlock the key before decrypting.
Is my data uploaded?
No. Everything runs in your browser. Load the page, disconnect your internet and it still works.

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