.P7Z

P7Z File

S/MIME Compressed Message
Ask a question
QUICK ANSWER

A .p7z file is a compressed S/MIME email message - the full email packed using the PKCS#7 standard with DEFLATE compression. It shows up as an attachment named smime.p7z only when your mail program cannot handle compressed S/MIME. Open it in Microsoft Outlook, Apple Mail, or Mozilla Thunderbird; they decompress it automatically and display a normal email. It is not a 7-Zip archive.

Developer: RSA Security / IETF (PKCS #7, RFC 2315; S/MIME, RFC 3851/8551) Category: Encoded Files Open standard MIME: application/pkcs7-mime
OPENS ON Windows macOS Linux
Related: .CRYPT · .SDOC · .AXX · .REM

On this page

19k+ extensions indexed
Last reviewed Sep 1, 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 P7Z file format?

A .p7z file is a CMS CompressedData message - part of the S/MIME and PKCS #7 family of cryptographic message formats. Unlike its sibling .p7s (detached signature) and .p7m (encrypted or signed message), a .p7z file only compresses its payload using zlib/DEFLATE as specified in RFC 3274. It adds no encryption and no digital signature.

In practice, .p7z files arrive almost exclusively as e-mail attachments named smime.p7z, generated automatically when an S/MIME mail client compresses an outgoing message. A recipient whose client supports S/MIME decompression (Outlook, Apple Mail, Thunderbird) never sees the .p7z file - the client silently unwraps it and displays the message normally. The file surfaces only when the recipient's mail application lacks S/MIME support.

The binary format is DER-encoded ASN.1: a CMS ContentInfo structure wrapping a CompressedData value with CMSVersion 0, a compression algorithm identifier (OID 1.2.840.113549.1.9.16.1.9 for zlib), and the compressed MIME content. When transmitted in e-mail, it is typically base64-armoured. Integrity relies on zlib's built-in Adler-32 check; cryptographic integrity requires an additional SignedData wrapper.

The format is defined in RFC 3274 within the Cryptographic Message Syntax (CMS, RFC 5652) framework, forming part of the S/MIME 4.0 suite (RFC 8551).

Security & safety

RISK: MEDIUM

A .p7z is a compressed e-mail and only as safe as its contents: the inner message can carry malicious attachments or phishing links that become active once decompressed, so treat an unexpected smime.p7z like any unsolicited mail and don't open enclosed files you don't trust. Note that .p7z provides NO encryption - it is compression only, so it offers no confidentiality (that's the job of .p7m/encrypted S/MIME). Decompression 'zip-bomb' style abuse is theoretically possible but rare. If a smime.p7z won't open, the usual cause is simply a mail client without S/MIME-compression support, not a threat.

Format details

in a nutshell
FULL NAMES/MIME Compressed Messageaka PKCS #7 Compressed Data, smime.p7z attachment
DEVELOPERRSA Security / IETF (PKCS #7, RFC 2315; S/MIME, RFC 3851/8551)since S/MIME compression defined in RFC 3274 (CMS Compressed Data, 2002)
MIME TYPEapplication/pkcs7-mime
TYPEPKCS
STANDARDOpen · royalty-free
This extension is also used by…
  • Split 7-Zip volume - Some tools and older references label a multi-volume 7-Zip part .p7z; in practice 7-Zip splits are named .7z.001 etc., so genuine p7z volumes are rare.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
3082
ASCII
0·
A binary (DER) p7z begins with an ASN.1 SEQUENCE tag 0x30, usually 0x30 0x82 followed by a length, wrapping a PKCS#7/CMS ContentInfo with the compressed-data OID (1.2.840.113549.1.9.16.1.9). When base64-armoured inside an e-mail it has no fixed binary signature - it is text starting with the MIME headers. There is no "magic word"; identify it by the application/pkcs7-mime media type and the smime.p7z attachment name.

Programs that open P7Z files

Windows3 apps
Microsoft Outlook Paid Open the message in Outlook; as an S/MIME-capable client it decompresses smime.p7z automatically and shows the normal e-mail. No add-in needed.
Mozilla Thunderbird Open-source Open the message (or import the .eml) in Thunderbird, which supports S/MIME and shows the decompressed message. Free.
OpenSSL (cms) Open-source Advanced/manual: 'openssl cms -decompress -in smime.p7z -inform DER -out message.eml' to recover the original message, then open the .eml.
macOS3 apps
Mozilla Thunderbird Open-source Free S/MIME-capable client; open the message to read the decompressed content.
Apple Mail Built-in Built into macOS; Apple Mail supports S/MIME and decompresses the message automatically. Save the original e-mail with the sender's S/MIME configured.
OpenSSL (cms) Open-source Terminal: 'openssl cms -decompress -in smime.p7z -inform DER -out message.eml' then open the resulting .eml in Mail.
Linux2 apps
Mozilla Thunderbird Open-source Open the message in Thunderbird; it decompresses S/MIME and displays the e-mail.
OpenSSL (cms) Open-source 'openssl cms -decompress -in smime.p7z -inform DER -out message.eml' to extract the original message for any mail viewer.

Technical details

deep spec
EncodingBinary DER (ASN.1) for standalone files; base64-armoured when embedded in MIME e-mail
Byte orderNot applicable - ASN.1 DER is tag-length-value encoding, not endian-dependent
ContainerPKCS #7 / Cryptographic Message Syntax (CMS) - CompressedData ContentInfo
Magic bytes30 82 (ASN.1 SEQUENCE with 2-byte length) at offset 0 for DER-encoded files; no fixed signature for base64-armoured MIME form
Compressionzlib / DEFLATE (RFC 3274 CMS Compressed Data)
EncryptionNone - .p7z compresses only; encryption requires .p7m (EnvelopedData)
CMS OID1.2.840.113549.1.9.16.1.9 (id-smime-ct-compressedData)
CMSVersion0 (fixed for CompressedData)
Integrityzlib Adler-32 checksum built into the compressed stream; no cryptographic integrity unless wrapped in a SignedData layer (.p7m)
Typical sizeA few KB to a few MB (one e-mail message with its inline parts and attachments)
MIME typeapplication/pkcs7-mime; standard attachment filename smime.p7z
SpecificationRFC 3274 (CMS Compressed Data); S/MIME 4.0 per RFC 8551
Delivery modelAuto-generated by S/MIME clients; transparent to capable recipients who never see the raw .p7z attachment
Sibling formats.p7m = encrypted/signed EnvelopedData or SignedData; .p7s = detached signature; .p7c = certificate bundle
ReleasedS/MIME compression defined in RFC 3274 (CMS Compressed Data, 2002)
Latest versionS/MIME 4.0 (RFC 8551, 2019); compression per RFC 3274
Open standardYes · royalty-free
Specificationdatatracker.ietf.org

P7Z conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with P7Z 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 P7Z files.

Frequently asked questions

What is a smime.p7z attachment?
It's a compressed S/MIME e-mail message. Your mail program received a message whose contents were compressed using the S/MIME standard but couldn't decompress it, so the compressed blob appeared as an attachment named smime.p7z. An S/MIME-capable client shows it as a normal e-mail.
How do I open a .p7z file?
Open the e-mail in an S/MIME-aware mail client - Microsoft Outlook, Apple Mail or Mozilla Thunderbird - which decompresses it automatically. Manually, you can run 'openssl cms -decompress' to turn it into a standard .eml.
Is a .p7z file the same as a 7-Zip archive?
No. Despite the similar name, a .p7z here is a compressed S/MIME e-mail (PKCS#7), not a 7-Zip (.7z) archive. 7-Zip cannot open it; use a mail client. A rare separate use of .p7z is a split 7-Zip volume, but those are normally named .7z.001.
Is a .p7z file encrypted?
No - .p7z is only compressed, not encrypted, so it provides no confidentiality on its own. Encrypted S/MIME messages use the .p7m extension; .p7s is a detached signature.
Why did I receive a .p7z instead of a normal email?
Because the sender's system compressed the message with S/MIME and your mail client doesn't support compressed S/MIME. Open it in Outlook, Apple Mail or Thunderbird and it will display as a normal message.
What's the difference between .p7z, .p7m and .p7s?
.p7z is a compressed message, .p7m is an encrypted (or signed) message, and .p7s is a detached digital signature accompanying a plain message. All are part of the S/MIME / PKCS#7 family.

References

1IETF RFC 3274 - Compressed Data Content Type for CMSdatatracker.ietf.org
2IETF RFC 8551 - S/MIME 4.0 Message Specificationdatatracker.ietf.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.BINCD/DVD Disc Image (BIN/CUE)
4.DATProgram Data File (generic)
5.PARTPartial Download File
6.EXEWindows Executable (Portable Executable)
7.RPMSGRestricted Permission Message
8.NOMEDIAAndroid No-Media Marker File
9.MDMarkdown Document
10.TXTPlain Text File

Related extensions

.CRYPTWhatsApp Encrypted Message Database Backup
.SDOCOracle IRM Sealed Word Document
.AXXAxCrypt Encrypted File
.REMBlackBerry Encrypted Media Card File
.DLCDownload Link Container
.SECPGP Secret Key Ring File

Free file tools

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

Open the toolbox

Browse file extensions A-Z