Money and Finance

Turn Hundreds of CFDI XML Invoices into One Excel Sheet

How to convert many Mexican CFDI XML invoices into one Excel or CSV table, find duplicates, total IVA and withholdings by month and reconcile your returns.

Saizul Amin
Saizul Amin3 Nov 2026 · 3 min read
Turn Hundreds of CFDI XML Invoices into One Excel Sheet

Anyone who issues or receives invoices in Mexico ends up with a folder full of XML files. Each one is a CFDI, the legal electronic invoice. To prepare monthly returns, check deductible expenses or answer a SAT letter, you need their numbers in a table. This guide explains how to do that in minutes with the free CFDI Bulk XML to Excel Converter.

Why a table matters

Your monthly ISR and IVA returns depend on totals: income invoiced, expenses received, IVA charged and paid, and taxes withheld by clients. SAT's prefilled returns use the same invoices, so differences between your books and SAT's data lead to letters and audits. A table lets you sort, filter, total and compare.

Step 1: get the XML files

There are three common sources:

  • The SAT portal. In the Factura electrónica service you can search invoices issued or received by date range and download them. For large periods, request a bulk download (descarga masiva), which arrives as a ZIP package.
  • Email. Suppliers send XML files with their PDFs.
  • Your billing software. Most let you export issued invoices.

Unzip packages first, then put all XML files in one folder.

Step 2: load them

Open the converter and select all the files at once. They are read in your browser, so hundreds of files load in seconds and none of them leave your computer. You can also press the example button to see how it works before using your own files.

Step 3: read the table

Each row is one invoice with:

  • File name, date and month.
  • Document type: income, credit note, payroll, payment or transfer.
  • Series and folio.
  • Issuer and receiver RFC and name.
  • Subtotal, discount, IVA transferred, ISR withheld, IVA withheld and total.
  • Currency, payment method and payment form.
  • The UUID.
  • For payment receipts, the amount paid.
  • The number of arithmetic issues found.

Step 4: deal with duplicates

The same invoice is often downloaded twice, once from SAT and once from email. Because the UUID is unique, the converter marks the second copy as a duplicate. Remove duplicates before totalling, or your expenses and IVA will be overstated.

Step 5: summarise

Switch the summary to group by month or by issuer. By month you get the figures for each monthly return. By issuer you see how much you spent with each supplier, which helps when checking statements or negotiating.

Step 6: export

Export as CSV for any program, or as an Excel file that opens directly in Excel, LibreOffice or Google Sheets. Keep the spreadsheet with your working papers; Mexican tax law requires records to be kept for five years.

Tips for reconciling IVA

  • PUE invoices are paid at issue, so their IVA belongs to that month.
  • PPD invoices are paid later. IVA becomes creditable in the month you pay, shown by the payment receipt with the Pagos complement. Use the payment row, not the invoice.
  • Credit notes reduce income or expenses; subtract them.
  • Withholdings that clients made from your invoices are credited in your own return.

Cancelled invoices

The converter reads what each file says. It cannot know whether an invoice was later cancelled. Check the status of important invoices in the SAT verification service, or compare with the SAT list of received invoices, which shows the status.

Who uses this

  • Accountants preparing monthly returns for many clients.
  • Freelancers in RESICO or the professional regime.
  • Small businesses reviewing supplier invoices.
  • Payroll teams checking payroll receipts issued.

Limits

The converter reads core CFDI 4.0 and 3.3 fields. Specialised complements, such as foreign trade or fuel, are not broken out into columns. It is a data tool and not tax advice; your accountant should confirm how each invoice is treated in your returns.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages