A .p7m file is one of the most common — and most confusing — file types in the world of electronic documents. If someone has sent you a file ending in .p7m and your computer or phone does not know how to open it, this guide explains exactly what it is and how to read it.

What is a .p7m file?

P7M Viewer opens a signed .p7m file and reveals the original document in seconds.
P7M Viewer opens a signed .p7m file and reveals the original document in seconds.
Open .p7m files on your phone
Open .p7m files on your phoneGet the free P7M Viewer app for Android — open and share signed files anywhere.Get the App

A .p7m file is a normal document — a PDF, an XML invoice, a Word file or an image — that has been wrapped inside a PKCS#7 (also called CMS or CAdES) cryptographic envelope. The `.p7m` part of the name literally means "PKCS#7 Message".

Instead of storing only the document, the envelope stores three things together:

  • the original document
  • one or more digital signatures
  • the certificates of the people or companies that signed it

Why do .p7m files exist?

The purpose of a .p7m file is trust. A digital signature proves two things that a normal file cannot:

  • Authenticity — who really created or approved the document
  • Integrity — that not a single byte has been changed since it was signed

Because of this, .p7m files are used everywhere legally binding documents are exchanged: electronic invoices (the Italian *fattura elettronica* is the most famous example), contracts, court documents, tax filings and certified email attachments.

What is inside a .p7m file?

If you could look inside, you would see the original file plus a block of signature data. The signature contains a mathematical fingerprint (a hash) of the document, encrypted with the signer's private key. Anyone can verify that fingerprint using the signer's public certificate — but nobody can forge it.

How do you open a .p7m file?

You do not need expensive desktop software. The fastest way is an online tool that extracts the original document for you:

1. Open the free P7M Viewer open tool.

2. Drag your .p7m file onto the box.

3. In a second the original document appears — view it or download it.

P7M Viewer also shows you who signed the file and when, so you can trust what you received.

.p7m vs .p7s vs .p7b — what is the difference?

These extensions are related but not identical:

  • .p7m — the signed message; it contains the document itself.
  • .p7s — a detached signature; the document is stored separately.
  • .p7b — a certificate bundle; it contains certificates, not a document.

For everyday use — invoices, contracts, official letters — you will almost always meet .p7m.

Is it safe to open a .p7m file online?

With P7M Viewer your file is processed only to extract its content and is deleted automatically shortly afterwards. Nothing is shared or published. For extra convenience you can also install the free Android app and open signed files directly on your phone.

Key takeaways

  • A .p7m file is a document sealed inside a digital-signature envelope.
  • It guarantees who signed a document and that it was not modified.
  • You can open it online in seconds, or on Android with the free app.
  • Opening a single .p7m file with P7M Viewer is completely free.