Mexico CFDI 4.0 Invoice XML Viewer
Open or paste a CFDI XML file to see the invoice in a readable layout, check that totals and taxes add up, find the UUID and print or save a copy.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open the XML
Or paste its text.
- 2Read the header
Folio, date and type.
- 3Check the parties
Issuer and receiver.
- 4Review the items
Codes, amounts, taxes.
- 5See the checks
Totals and stamp.
- 6Print or save
A readable copy.
About this tool
Every invoice in Mexico is an electronic file called CFDI (Comprobante Fiscal Digital por Internet), an XML document stamped by an authorised certification provider with a unique folio fiscal, the UUID. Version 4.0 has been mandatory since 1 April 2023 and adds the receiver's tax regime and postal code, the export field and the tax object of each item. The XML is the legal document; the PDF that often comes with it is only a printed representation, and many people receive the XML alone or need to check that a PDF matches it. Reading raw XML is hard, so this viewer opens the file in your browser and lays it out as an invoice. You see the series and folio, date, type of document, currency, payment form and method, the issuer and receiver with their RFC and regime, every item with its product code, quantity, unit price, discount and taxes, and the totals of IVA transferred, ISR withheld and IVA withheld. For payment receipts it lists the Pagos complement with the invoices paid. The tool then checks the arithmetic: that the subtotal equals the sum of items, that discounts match, and that the total equals subtotal minus discount plus taxes transferred minus taxes withheld. It also flags a missing stamp, an old version and a PPD invoice with a payment form other than 99. Nothing is uploaded; the file is read on your device. To confirm that an invoice is valid and not cancelled, use the SAT verification service with the UUID.
Who this is for
Freelancers and small businesses reviewing invoices they received, accountants checking client files, employees reading payroll receipts, and anyone who got an XML without a PDF.
Document types
| Code | Type | |---|---| | I | Income (ingreso): a sale or service | | E | Credit note (egreso): refund or discount | | T | Transfer (traslado): moving goods | | N | Payroll (nómina) | | P | Payment receipt (pago) for PPD invoices |
PUE and PPD
PUE means the invoice was paid in one payment at issue. PPD means it is paid later or in instalments, uses payment form 99 and needs a payment receipt (complemento de pago) when money arrives, which is when the IVA can be credited.
Common payment forms
The payment form field uses SAT catalogue codes. The most frequent are 01 for cash, 02 for a nominative cheque, 03 for an electronic transfer, 04 for a credit card, 28 for a debit card and 99 for to be defined. The viewer translates these codes, the use of CFDI code and the tax regime numbers, so you can see at a glance whether the invoice was issued with the details your accountant asked for, such as the right use code for deducting the expense.
Limits
This viewer reads the content and checks arithmetic only; it does not verify the digital seal or the cancellation status. Use the official SAT verifier for that. Not tax advice.
Worked example
A sample invoice for $12,500 with a $500 discount and 16% IVA totals $13,920 and passes every check.
Quick facts
- Category: Money & Tax
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: SAT Anexo 20 (CFDI 4.0)
Frequently asked questions
What is a CFDI?
The electronic invoice required in Mexico, an XML file stamped with a UUID by an authorised provider.
Is the PDF a valid invoice?
The XML is the legal document; the PDF is only a printed representation.
How do I check that an invoice is real?
Enter the UUID, RFCs and total in the SAT invoice verification service.
Can I read version 3.3 files?
Yes, older invoices open too, with a note that 4.0 is now required.
What does the totals check do?
It recalculates subtotal, discounts, taxes and total and lists any difference.
Is my file uploaded?
No, it is read in this browser only.
