# Aprire file P7M

> Trascina il .p7m che ti ha mandato il fornitore o il commercialista: la busta firmata viene aperta nel browser e la fattura compare con righe, IVA e totali. La salvi in PDF in un clic. Il file non lascia il tuo dispositivo.

Human page: https://unmakelabs.com/it-it/aprire-file-p7m/. This is the version for AI agents.

## What it does

Aprire file P7M: leggi la fattura elettronica Trascina il .p7m che ti ha mandato il fornitore o il commercialista: la busta firmata viene aperta nel browser e la fattura compare con righe, IVA e totali. La salvi in PDF in un clic. Il file non lascia il tuo dispositivo.

## Cos'è un file .p7m

Un .p7m è una busta con firma digitale (formato CAdES): dentro c'è il documento originale, quasi sempre l'XML di una fattura elettronica, più la firma di chi l'ha emessa. Per questo il nome finisce spesso in .xml.p7m. Windows e macOS non sanno cosa farne e lo aprono come testo illeggibile; di solito serve un programma di firma come Dike o ArubaSign. Qui basta il browser: la busta viene aperta, l'XML estratto e mostrato come una fattura vera.

## Quando capita

Le fatture passano dallo SdI e molti gestionali le inoltrano così come arrivano, firmate. Le riceve chi scarica le fatture dal cassetto fiscale, chi le ottiene via PEC, il commercialista che deve controllarne una al volo, chi lavora da Mac o dal telefono e non ha un lettore di firme installato.

## Anche la versione base64

Alcuni sistemi salvano il .p7m codificato in base64 (testo che inizia con MII…). Il visualizzatore riconosce sia il formato binario DER sia quello base64 e apre entrambi senza passaggi in più.

## Facts

- **Apre:** .xml.p7m firmati (DER e base64), .xml FatturaPA, lotti con più fatture
- **Mostra:** Cedente e cessionario con partita IVA, righe, riepilogo IVA per aliquota e natura, bollo, ritenuta, scadenze
- **Ricalcola:** Imponibile, IVA e totale documento, riga per riga; IBAN controllato
- **Esporta:** PDF leggibile, righe in CSV, l'XML estratto dalla busta

## How a person does it

1. **Trascina il .p7m.** Prendi il file dalla PEC, dal cassetto fiscale o dal gestionale e lascialo cadere sul riquadro, oppure tocca Scegli un file. Non serve rinominarlo né togliere l'estensione.
2. **Controlla la fattura.** Compare come una fattura su carta: chi la emette, a chi è intestata, cosa è stato venduto, l'IVA e il totale da pagare. Se una somma non torna, la barra in alto lo segnala.
3. **Salvala come ti serve.** Stampa o salva in PDF per l'archivio o per il commercialista, scarica le righe in CSV per Excel, oppure salva l'XML pulito senza busta per caricarlo in un altro programma.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/it-it/aprire-file-p7m/?src=https://unmakelabs.com/apps/einvoice/samples/peppol-be.xml`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: none: the invoice never goes in a link. `?src=<public invoice URL>` opens a file the visitor's browser can fetch (CORS).

Embed: `<iframe src="https://unmakelabs.com/embed/einvoice/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Send your own file (live)

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/einvoice_view/jobs?wait=25` with the file as multipart `file` (or JSON `file_base64` + `filename`, or `file_url`), API tool `einvoice_view`: Read an e-invoice (XRechnung, ZUGFeRD, Factur-X, Peppol, FatturaPA). The same engine code as this page. No sign-up; Free: 5 full results per IP per day without a key (resets at 00:00 UTC); POST /v1/keys gives an instant key with 25 more full results (one-time, not renewed); each accepted correction adds 1 free call (up to 20 a month).

```bash
# e-invoice: fields, lines and every total recomputed
curl -s -F "file=@invoice.xml" "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/einvoice_view/jobs?wait=25"
```

## Good to know

La firma digitale viene tolta per leggere il contenuto, ma non viene verificata: la pagina non dice se il certificato del firmatario è valido. Per la conservazione a norma tieni sempre il file .p7m originale.

## Not done by this tool

- Non verifica la validità della firma né del certificato
- Apre solo .p7m che contengono una fattura XML, non PDF o altri documenti firmati
- Non invia la fattura allo SdI e non la registra in contabilità
- Non apre i file .tsd o .m7m con marca temporale

## Value

Opens electronic invoices in any browser, phones included, and shows them as a readable invoice: XRechnung (UBL and CII), ZUGFeRD 1.0 and 2.x and Factur-X (the XML alone, or the PDF with factur-x.xml / zugferd-invoice.xml / xrechnung.xml inside, all profiles from MINIMUM to EXTENDED), Peppol BIS Billing 3.0 and any EN 16931 UBL 2.1 invoice or credit note (also inside a Peppol SBDH envelope), and Italian FatturaPA (also signed .p7m, several invoices per file). Shows seller and buyer with VAT IDs and electronic addresses, references (buyer reference / Leitweg-ID, order, contract), lines with item numbers, allowances and charges, the VAT breakdown, totals, payment details (IBAN with check digits verified, BIC, payment reference, terms, XRechnung Skonto in words), notes and attached documents. Labels switch between English, German, French and Dutch independently of the page. Recomputes the sums by program (EN 16931 BR-CO-10 to BR-CO-17, VAT per category and rate, each line's quantity × price) and checks the most common required details, labelled as quick checks, not a full validation. Exports a PDF through the print dialog, the lines as CSV, the invoice as JSON and the XML itself (useful to get the XML out of a ZUGFeRD PDF). Nothing is uploaded. Free, no sign-up.

## When it fits

- A business received an XRechnung or ZUGFeRD / Factur-X file by email and sees only code, or wants a readable copy to file or forward.
- A Belgian or other Peppol user wants to read a UBL file outside their accounting software, on a phone or a computer without it.
- A bookkeeper wants to see quickly whether an e-invoice's sums and VAT add up and get its lines into a spreadsheet (CSV).
- Someone needs the XML out of a ZUGFeRD / Factur-X PDF, or wants to read an Italian FatturaPA (.xml or .p7m) from a supplier.

### When not

- Creating or converting invoices (the converter side is planned separately).
- A full validation against every official rule (EN 16931 Schematron, XRechnung BR-DE, Peppol, French or Italian national rules): only the sums and the most common required details are checked here.
- Polish KSeF and Spanish Facturae files (a plain message says so), sending invoices through Peppol or a French approved platform.

## Why use it instead of the alternatives

- Nothing to install: the viewer opens a public e-invoice by link (?src=) in any browser, phones included, and can be embedded (/embed/einvoice/).
- Agents can send their own file: POST /v1/einvoice_view/jobs (live, no sign-up, free calls) returns the invoice, its quick checks and every recomputed total as JSON, from the same code as the page. A full validation with the official rule sets is planned.
- Free viewers exist for single formats or countries (German XRechnung viewers, Italian FatturaPA viewers, a paid Belgian UBL app); several upload the file to a server, and most stop at display or show a long list of rule IDs.
- This viewer opens all the main EU formats in one place without upload or account, on a phone, in four label languages, recomputes every sum and shows where a figure is off, and gives the lines as CSV and the XML out of a PDF.

### What rebuilding it would take

- Write readers for UBL 2.1, UN/CEFACT CII D16B, ZUGFeRD 1.0 and FatturaPA with the EN 16931 field map, plus a PDF/A-3 attachment reader (FlateDecode streams, object streams) and a CAdES .p7m reader.
- Implement the EN 16931 calculation rules with the right tolerances, per-category VAT bases, profile quirks (MINIMUM, EXTENDED information lines, XRechnung third-party payments) and IBAN check digits.
- Lay out a readable, printable invoice with code lists (document types, VAT categories, payment means, units) in several languages, and test on the official sample sets.
- The official test suites to check against, code lists to keep current, and upkeep as XRechnung, Factur-X and Peppol versions change.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Invoices are read on the user's device and never uploaded; files given by link are fetched by the user's browser from where they are stored.

_Status: viewer, quick checks, PDF (print), CSV, JSON and XML export work in the browser for XRechnung, ZUGFeRD / Factur-X, Peppol / UBL, CII and FatturaPA; the API (einvoice_view, agent upload) is live._

## Privacy

- Invoices are read on the user's device and not uploaded; there is no share link for invoices.
- For PDFs the page loads fflate and pdf.js from unmakelabs.com itself; no third-party code host is contacted.

## Data

Si apre nel browser e la fattura resta sul tuo dispositivo. Non viene caricato nulla e nei link non finisce nessun dato della fattura.

## FAQ

- **Come si apre un file .p7m senza Dike o ArubaSign?** Trascinalo in questa pagina. Il browser apre la busta CAdES, ne estrae l'XML e lo mostra come fattura. Non devi installare nulla né creare un account.
- **Funziona su Mac, iPhone e Android?** Sì. Tutto avviene nel browser, quindi va bene su macOS, Windows, Linux, iPhone e Android. Dal telefono tocca Scegli un file e prendi il .p7m dalla posta o dai download.
- **Posso trasformare il .p7m in PDF?** Sì. Apri il file e scegli Salva PDF: ottieni una copia leggibile della fattura da archiviare o inoltrare. Per la conservazione fiscale conta però il file originale.
- **Il file viene caricato su un server?** No. La fattura viene letta sul tuo dispositivo e non viene inviata a noi né ad altri.
- **È davvero gratis?** Sì: niente pubblicità, niente registrazione, nessun limite e nessun piano a pagamento per la visualizzazione.
- **Caricate la mia fattura?** No. Il file viene letto dentro questa pagina, sul tuo dispositivo. Non c'è alcun caricamento né link di condivisione per le fatture.
- **È una validazione completa?** No. La pagina ricalcola le somme (le regole di calcolo EN 16931, l'IVA per aliquota, ogni riga) e controlla i dati obbligatori più comuni. Le regole ufficiali sono centinaia; oggi tutto avviene nel tuo browser, e in futuro è prevista una verifica completa sui nostri server.
- **Un agente IA può usarlo?** Sì. Un agente può inviare la propria fattura XML o PDF all'API (einvoice_view, senza registrazione, chiamate gratuite; la chiamata è descritta in Per agenti IA) e riceve la fattura e tutti i totali ricalcolati come dati, con lo stesso codice di questa pagina. Può anche aprire una fattura pubblica in questo visualizzatore tramite link (aggiungi ?src= e l'indirizzo del file).
- **Chi c'è dietro?** Unmake Labs (Julien Salomon). Contatto: hello@unmakelabs.com.

## Related pages

- [Visualizzatore fattura elettronica](https://unmakelabs.com/it-it/visualizzare-fattura-elettronica/)
- [Lettore Factur-X](https://unmakelabs.com/it-it/visualizzare-fattura-factur-x/)
- [Visualizzatore fatture Peppol](https://unmakelabs.com/it-it/visualizzare-fattura-peppol/)
