Verification result will be displayed here
How do I encrypt a message with a PGP public key?
To encrypt a message, paste the recipient's public key, enter the text, and choose ENCRYPT TEXT. This page opens the Encrypt tab of the same client-side tool used on the homepage, and the ciphertext is created in your browser without uploading keys or message contents to our server.
-
Paste the recipient public key
Use their public key, the block that starts with
-----BEGIN PGP PUBLIC KEY BLOCK-----. You can also choose IMPORT PUBLIC KEY. Do not paste a private key here. -
Enter the message
Type or paste the text you want to protect. Only this message body is encrypted. Email subject lines and headers are not covered unless your mail client encrypts them separately.
-
Encrypt the text
Choose ENCRYPT TEXT. The tool creates a standard OpenPGP message in your browser and shows the ASCII armor block in the output field.
-
Send the ciphertext
Copy the
-----BEGIN PGP MESSAGE-----block and send it over email, chat, or any other channel. Only someone with the matching private key can read it.
Whose key do I use to encrypt a PGP message?
Use the recipient's public key, not your private key and not only your own public key if you want them to be able to read it. Only the matching private key can open the message, so verify a new contact's key fingerprint first. The PGP key reader can show the fingerprint, user ID, and expiry.
For the full tutorial, including a readable copy for yourself and common mistakes, see how to encrypt and decrypt a PGP message.
Can I encrypt a file with this tool?
Not here: this encryption tool is for text messages. To encrypt a PDF, archive, or other file, use the PGP file encryption page. To read an incoming message, open PGP Decrypt.
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 encrypt a message with this PGP encryption tool?
Open the Encrypt tab on this page. Paste the recipient's public key, type or paste your message, and choose ENCRYPT TEXT. Send the resulting BEGIN PGP MESSAGE block over email, chat, or any other channel.
Whose key do I use to encrypt a PGP message?
Always use the recipient's public key. If you encrypt only to your own public key, the recipient will not be able to read it. You cannot decrypt a message that was encrypted solely to someone else's public key.
Will the recipient need the same tool?
No. The output is standard OpenPGP ciphertext. They can decrypt it with GnuPG, Kleopatra, Thunderbird, Proton Mail, or the PGP decrypt page, as long as they have the matching private key.
Can I encrypt a file, not just text?
Use the PGP file encryption tool to encrypt PDFs, archives, or other files in your browser, with a public key or a password.
Is this PGP encryption tool safe to use in a browser?
Encryption runs locally with OpenPGP.js. Your keys 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.
What does a PGP encrypted message look like?
It is an ASCII armor block that starts with BEGIN PGP MESSAGE and ends with END PGP MESSAGE. You can copy that block as plain text. Subject lines and email headers are not encrypted unless your mail client handles that separately.