Verification result will be displayed here
How do I decrypt a PGP message?
To decrypt a PGP message, paste your private key, enter its passphrase, paste the full BEGIN PGP MESSAGE block, and choose DECRYPT TEXT. This page opens the Decrypt tab of the same client-side tool used on the homepage, and OpenPGP.js processes everything in your browser without uploading it to our server.
-
Paste the encrypted message
Copy the full block, including the
-----BEGIN PGP MESSAGE-----and-----END PGP MESSAGE-----lines, into the ciphertext field. -
Import your private key
Paste your private key or choose IMPORT PRIVATE KEY. This is the secret key that matches the public key the sender used, not the public key itself.
-
Enter the passphrase and decrypt
Type the passphrase that protects the private key, then choose DECRYPT TEXT. The plaintext appears in the output box and never leaves this device.
-
Copy the plaintext
Copy the decrypted message, then clear the private key and passphrase from the form when you are done.
Which key decrypts a PGP message?
A PGP message is encrypted to a public key. Only the matching private key can decrypt it. If you only have the sender's public key, or your own public key, decryption will fail. Import the private key that belongs to the recipient (usually you), then enter its passphrase.
If you do not have a key pair yet, generate a PGP key first and share only the public key. To inspect a public key before you trust it, use the PGP key reader.
Can I decrypt a GPG message in the browser?
Yes. GPG (GnuPG) implements the same OpenPGP standard, so a message created with GPG, Kleopatra, Thunderbird, or Proton Mail can be decrypted here if you have the matching private key. Ciphertext from this tool can also be decrypted in those programs.
Need the longer walkthrough, including armor pitfalls and error checks? Read how to encrypt and decrypt a PGP message.
Can I decrypt a .gpg or .pgp file here?
Not on this page: this form decrypts ASCII-armored text, the block that starts with BEGIN PGP MESSAGE. To decrypt a .gpg, .pgp, or .asc file, open the file decryption tool.
Related Tools and Guides
These client-side tools and guides sit alongside this page. The main all-in-one tool remains on the OnlinePGP homepage.
Guides:
Frequently Asked Questions
How do I decrypt a PGP message?
Open the Decrypt tab on this page. Paste your private key, enter the passphrase that protects it, paste the full BEGIN PGP MESSAGE block, and choose DECRYPT TEXT. The plaintext stays in your browser.
Which key do I use to decrypt a PGP message?
You need the private key that matches the public key the sender encrypted to, plus that key's passphrase. A public key can encrypt a message or verify a signature, but it cannot decrypt one.
Does this PGP decrypt tool work with GPG?
Yes. OnlinePGP speaks OpenPGP, so it can decrypt standard GPG and OpenPGP messages as long as you have the matching private key. It also works with ciphertext from Kleopatra, Thunderbird, and Proton Mail.
Why did PGP decrypt fail?
The usual causes are the wrong private key, a typo in the passphrase, or a damaged ASCII armor block (missing BEGIN or END lines, cut-off text, or formatting added by a mail or chat app). Paste the block in plain text and try again.
Can I decrypt a .gpg or .pgp file here?
This page decrypts text messages. To decrypt a .gpg, .pgp, or .asc file, use the PGP file tool, which also runs entirely in your browser.
Is it safe to decrypt PGP in a browser?
Decryption runs locally with OpenPGP.js. Your private key, passphrase, and message are not sent to our server. You can inspect the open-source code on GitHub. For high-risk or life-critical secrets, an offline program such as GnuPG is a safer choice.