Can I decrypt a .gpg or .pgp file in the browser?
Yes. This page decrypts .gpg, .pgp, and .asc files in your browser with a private key or a password. The PGP decrypt and PGP encrypt pages handle text messages. Use this page when you need to decrypt a .gpg, .pgp, or .asc file, or to encrypt a PDF, archive, or other file. Everything runs in your browser's memory with OpenPGP.js and downloads locally.
How do I encrypt or decrypt a PGP file?
-
Choose the file to encrypt
Select any file in the Encrypt a File section. The whole file is read into browser memory, so this works best under about 50 to 100 MB.
-
Add a public key or a password
Paste the recipient's public key, enter a strong symmetric password, or both. You need at least one of the two.
-
Encrypt and download
Click ENCRYPT & DOWNLOAD .PGP. The encrypted file is saved locally as the original name plus a .pgp extension.
-
Decrypt when you need the original
Select a .pgp, .gpg, or .asc file. Provide your private key and its passphrase, or the symmetric password, then click DECRYPT & DOWNLOAD FILE.
Browser Memory & Security Notes
Because the entire file is read into browser memory, this tool works best for files under 50 to 100 MB. For multi-gigabyte archives, use desktop GnuPG. Also check Hash & Checksum Verifier to verify file integrity, or Password Generator for strong symmetric passwords. Read How to Encrypt and Decrypt a Message and Is Online PGP Safe? for more.
Frequently Asked Questions
Are my files uploaded to a server?
No. Files are read into your browser's local memory and encrypted or decrypted client-side.
What is the maximum file size?
Because processing happens in browser RAM, keep files under roughly 50 to 100 MB for smooth performance.
Can I decrypt files created with GnuPG?
Yes, standard OpenPGP .pgp, .gpg, and .asc files are supported.
Should I use a public key or a password?
Use a public key when sending to someone else; use a strong symmetric password for personal backups.