Encrypt and decrypt files using OpenPGP. Supports public-key encryption and password-based encryption. All processing happens in your browser - files never leave your device.
Encrypt and decrypt files using PGP public and private keys directly in your browser. No software installation required. Compatible with GPG and OpenPGP standards.
PGP (Pretty Good Privacy) is an encryption standard used to secure files, emails, and messages. It uses a key pair system where a public key encrypts the data and the corresponding private key decrypts it. PGP is widely used by developers, security professionals, journalists, and system administrators to protect sensitive files in transit or at rest. This tool implements the OpenPGP standard, making it fully compatible with GPG-encrypted content.
Input:
File: secret.txt Public Key: -----BEGIN PGP PUBLIC KEY BLOCK----- ... -----END PGP PUBLIC KEY BLOCK-----
Output:
-----BEGIN PGP MESSAGE----- ... -----END PGP MESSAGE-----
What is PGP encryption?
PGP (Pretty Good Privacy) is an asymmetric encryption standard that uses a public key to encrypt data and a private key to decrypt it. It provides confidentiality, integrity, and authentication for files and messages.
What is the difference between PGP and GPG?
GPG (GNU Privacy Guard) is a free, open-source implementation of the OpenPGP standard. PGP is the original proprietary software. Both produce and consume the same encrypted file format, so content encrypted with GPG can be decrypted with this tool and vice versa.
Is my private key safe to use here?
Yes. All encryption and decryption runs entirely in your browser. Your private key and file contents never leave your device or get sent to any server.
What file types can be encrypted?
Any file type can be encrypted with PGP, including text files, PDFs, images, archives, configuration files, and binaries. The encrypted output is always an ASCII-armored PGP message block.
Can I decrypt files encrypted by GPG on the command line?
Yes. As long as you have the corresponding private key and passphrase, files encrypted with gpg --encrypt on the command line can be decrypted here.
What should I do if decryption fails?
Verify that you are using the correct private key that matches the public key used for encryption, and that the passphrase is correct. Also ensure the encrypted message has not been modified or truncated.