.PGP

PGP File

PGP Encrypted File
Ask a question
QUICK ANSWER

A PGP file is an encrypted file or message created with PGP (Pretty Good Privacy) or a compatible OpenPGP program such as GnuPG. To read it you must decrypt it - using a passphrase (if it was password-encrypted) or your private key (if it was encrypted to your public key). On Windows use Gpg4win/Kleopatra, on macOS GPG Suite, on Linux the built-in gpg command. Renaming the file does nothing; the contents are ciphertext until decrypted.

Developer: PGP (Phil Zimmermann, 1991); now Symantec/Broadcom PGP and the OpenPGP standard (IETF); GnuPG reads it too Category: Encrypted Files Open standard MIME: application/pgp-encrypted
OPENS ON Windows macOS Linux
Related: .ASC · .SIG · .DEC · .GPG

On this page

19k+ extensions indexed
Last reviewed Aug 24, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PGP file format?

Pretty Good Privacy (PGP) encrypted file - a .pgp file is a binary OpenPGP data file most commonly holding encrypted content, though the same extension also appears on signature files and exported key files. PGP cryptographic tools use .pgp files to decipher information and sign files or messages. The PGP system was originally developed in 1991 as a proprietary format by Phil Zimmermann, but was later implemented as an open standard in the form of OpenPGP (RFC 4880, updated to RFC 9580 in 2024) and the GnuPG implementation. The main goal of PGP is to ensure security and integrity of information exchange.

Files with a .pgp extension can be used to decrypt information encrypted using the public key associated with a recipient's private key. .pgp files should not be manually opened or edited, as doing so may irrevocably damage the encrypted data. Unlike early PGP versions that relied primarily on RSA, modern implementations support multiple public-key algorithms - including RSA, ECDH, ECDSA, and EdDSA - combined with a symmetric session key (AES-256, CAST5 or 3DES) to encrypt the payload. Typical content encrypted and stored as .pgp files includes:

  • e-mail messages,
  • text files,
  • folders,
  • file archives such as ZIP archives.

The .pgp and .gpg extensions are interchangeable - both carry the same OpenPGP packet stream; .pgp tends to come from the original commercial PGP lineage (now Broadcom Encryption Desktop), while .gpg tends to come from GnuPG. The ASCII-armored text equivalent uses the .asc extension and begins with -----BEGIN PGP MESSAGE-----. There are many different implementations of the PGP standard used on various operating systems - programs available from the command line or with a dedicated GUI all use the same underlying cryptographic encryption and decryption standard.

Security & safety

RISK: LOW

The .pgp format is a security tool, not a threat - the file is encrypted (and possibly signed) OpenPGP data and contains no executable code itself. The real cautions concern keys and secrets: if a .pgp is actually an exported PRIVATE key, never share it and protect it with a strong passphrase. Always decrypt locally with GnuPG/PGP - never paste a passphrase or private key into a website; "online PGP decryptors" that ask for your key are scams (and cannot decrypt anything they don't have the key for). A successful decrypt only means it decrypted; the recovered file (e.g. a document or an executable) still carries whatever risk that file type normally would.

Format details

in a nutshell
FULL NAMEPGP Encrypted Fileaka Pretty Good Privacy encrypted file, OpenPGP message file
DEVELOPERPGP (Phil Zimmermann, 1991); now Symantec/Broadcom PGP and the OpenPGP standard (IETF); GnuPG reads it toosince PGP 1.0 in 1991 (Phil Zimmermann); OpenPGP standardized as RFC 2440 (1998) / RFC 4880 (2007) / RFC 9580 (2024)
MIME TYPEapplication/pgp-encrypted
TYPEBinary OpenPGP data - most often an encrypted file/message; the same .pgp extension also appears on signatures and key files
STANDARDOpen · royalty-free
This extension is also used by…
  • PGP public/private key file - An exported OpenPGP key is sometimes saved as .pgp (binary) rather than .asc - imported, not decrypted.
  • PGP/OpenPGP signature file - A detached binary signature can carry the .pgp extension (the text-armored equivalent is .asc or .sig).

Programs that open PGP files

Windows2 apps
Gpg4win (Kleopatra) Open-source Right-click the .pgp > Decrypt and verify (or run 'gpg -d file.pgp' in a terminal). Enter the passphrase or unlock the private key. Free and reads PGP-made files.
Symantec/Broadcom Encryption Desktop (PGP) Paid The commercial successor to PGP Desktop; decrypts .pgp files. Only needed in enterprises already licensed for it - otherwise use free Gpg4win.
macOS2 apps
GPG Suite Free GUI for GnuPG (GPG Keychain + Finder Services); decrypt/verify .pgp files from Finder.
GnuPG (gpg) Open-source Install via Homebrew ('brew install gnupg'), then 'gpg -d file.pgp > output' to decrypt.
Linux2 apps
GnuPG (gpg) Open-source Pre-installed on most distros: 'gpg file.pgp' (or 'gpg -d file.pgp') decrypts; 'gpg --import key.pgp' imports a key.
Seahorse (GNOME Passwords and Keys) Open-source GUI key manager; with file-manager integration you can decrypt/verify .pgp files from Nautilus.

Technical details

deep spec
Container formatOpenPGP packet stream - tag-length-value (TLV) packets concatenated into a single binary file
EncodingBinary (raw OpenPGP packets); ASCII-armored text variants of the same data use the .asc extension
Byte orderBig-endian for multi-octet length fields and MPI (multi-precision integer) fields
Public-key algorithmsRSA, DSA, ECDH (X25519/X448), ECDSA, EdDSA (Ed25519/Ed448) - algorithm declared per packet
Symmetric cipherAES-128, AES-192, AES-256, CAST5, 3DES - a randomly generated session key is encrypted to recipient public key(s) or derived from a passphrase
CompressionOptional - plaintext may be compressed with ZIP, ZLIB, or BZIP2 before encryption (Compressed Data packet)
Integrity protectionModified Detection Code (MDC) / SEIP or AEAD authentication tag (RFC 9580); decryption fails or warns if ciphertext was tampered with
Packet format versionsv3 (legacy), v4 (RFC 4880, widely used), v6 (RFC 9580, 2024) - cipher suite and AEAD mode declared per-packet
MIME typeapplication/pgp-encrypted (primary); also application/pgp and application/octet-stream
Typical file sizeTracks the encrypted payload - a few KB for short messages to many GB for large archives, plus a small per-packet header overhead
Magic / file signatureNo single universal magic; first byte is an OpenPGP packet tag (high bit always set) - common values: 0x85, 0x84 (encrypted data), 0x99 (public key), 0x89 (signature)
Interchangeable extension.gpg carries identical OpenPGP data; .pgp is the commercial PGP / Broadcom convention, .gpg is the GnuPG convention
Platform supportCross-platform - Windows, macOS, Linux and any OS running GnuPG or a compatible OpenPGP implementation
Decryption requirementRecipient must possess the private key matching the public key used during encryption, or know the passphrase for symmetric-only (passphrase-based) encryption
ReleasedPGP 1.0 in 1991 (Phil Zimmermann); OpenPGP standardized as RFC 2440 (1998) / RFC 4880 (2007) / RFC 9580 (2024)
Latest versionOpenPGP RFC 9580 (2024); .pgp is also produced by legacy/commercial PGP and Symantec/Broadcom Encryption Desktop
Open standardYes · royalty-free
Specificationwww.rfc-editor.org

PGP conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PGP files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PGP files.

Frequently asked questions

How do I open / decrypt a .pgp file?
Install a PGP/OpenPGP tool - Gpg4win on Windows, GPG Suite on macOS, the built-in gpg on Linux - then run 'gpg file.pgp' (or 'gpg -d file.pgp'). You need the passphrase, or the private key the file was encrypted to. There is no way to read it without decrypting.
What is the difference between .pgp and .gpg?
None in practice - both are binary OpenPGP data. .pgp usually comes from the original/commercial PGP, .gpg from GnuPG, but each tool reads the other's files. The ASCII text form is .asc.
I renamed the .pgp and it's just gibberish - why?
Because it's encrypted, not merely re-extensioned. The contents are ciphertext until you decrypt them with PGP/GnuPG and the right passphrase or private key. Renaming changes nothing.
Can I decrypt a .pgp without the password or key?
No. Without the passphrase (symmetric) or the correct private key (public-key encryption), it cannot be decrypted - that is the whole point. If you lost the key/passphrase, the data is unrecoverable.
Do I have to buy PGP to open a .pgp file?
No. The free, open-source GnuPG (with Gpg4win/Kleopatra on Windows or GPG Suite on macOS) reads PGP-created .pgp files perfectly, because they all use the OpenPGP standard.
How do I encrypt a file as .pgp?
To a recipient: 'gpg --encrypt --recipient [email protected] file' produces an encrypted file only they can open. With a passphrase only: 'gpg --symmetric file'. Add '--armor' for the .asc text form.

References

1RFC 9580 - OpenPGP (current standard)www.rfc-editor.org
2GnuPG - official site & documentationgnupg.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.CRDOWNLOADChrome Partial Download File
5.MDMarkdown Document
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.PRO6XProPresenter 6 Bundle File
9.PRDXSoftMaker Presentations Document
10.SWFSmall Web Format (Shockwave Flash)

Related extensions

.ASCOpenPGP ASCII-Armored File
.SIGOpenPGP Detached Signature
.DECEncrypted / Encoded data file (generic)
.GPGGnuPG Encrypted File
.ENCEncrypted / Encoded file (generic)
.KDBXKeePass 2 Password Database

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z