CFDI XML to Excel Converter
Turn your Mexican CFDI 4.0 e-invoice XML files into Excel or CSV and get a summary of totals and taxes, without uploading them.
Your data is processed locally in your browser and never sent to our servers.
The XML files are read in your browser and never uploaded: not the file, not the tax IDs, not the amounts. Analytics only counts how many files were read. Closing the page or pressing "Clear" leaves nothing behind.
Are your website and email protected? Check them for free in 30 seconds: certificate, SPF and DMARC.
How it works
A CFDI is an XML file in a fixed format defined by SAT, the Mexican tax authority: the Comprobante node with its totals, the Emisor (issuer), the Receptor (receiver), the Conceptos (line items), the Impuestos (taxes) and, inside Complemento, the tax stamp with the UUID. This tool reads those nodes by their official namespace, so the attribute order or the prefix each invoicing provider uses does not matter.
Everything happens in your browser. We read each file with the browser built-in XML parser, in small batches so the page does not freeze even if you pick hundreds of invoices, and we build the Excel file right there. For safety we reject any XML that declares a DOCTYPE: a real CFDI never has one, and it is the way in for XML crafted to lock up your machine.
Amounts are added as exact decimals, not floating-point numbers: 0.10 plus 0.20 gives 0.30, not 0.30000000000000004. Totals are split by invoice type and by currency because mixing income with credit notes, or pesos with dollars, would give a figure that means nothing.
The CSV is saved as UTF-8 with a BOM so Excel shows accents correctly, and text starting with =, +, - or @ is protected with an apostrophe: a description written by a third party must not become a formula on your machine. The .xlsx file stores amounts as numbers, ready to add up.
What it does not do: verify the digital seal or ask SAT whether the CFDI is valid or cancelled. Reading an invoice is not validating it.
Related tools
- ▤
SAT Tax Status Certificate Reader
Upload the PDF of your Mexican tax status certificate and get the RFC, name, postal code and tax regime code needed for a CFDI 4.0 invoice.
- ✓
Mexican CLABE, RFC and CURP Validator
Validate Mexican CLABE bank numbers, RFC tax IDs and CURP codes in your browser: check digit, bank, date, state and taxpayer type.
- ⇄
CSV to JSON Converter
Convert CSV to JSON and JSON to CSV, respecting quotes, commas inside fields and embedded line breaks.
Frequently asked questions
- Are my invoices uploaded to a server?
- No. The XML files are read with JavaScript inside your browser and the Excel file is built right there. Neither the file, nor the tax IDs, nor the amounts travel to our servers; analytics only records how many files were read. You can check it in your browser network tab.
- What does the Excel file contain?
- Two sheets. "CFDI", one row per invoice: UUID, date, series and number, type, issuer and receiver with tax ID, name and tax regime, CFDI use, payment form and method, currency, subtotal, discount, VAT charged and withheld, income tax withheld, total and complements. "Conceptos", one row per line item with product code, quantity, unit, description, unit price, amount and taxes.
- Does it work with CFDI 3.3, payroll or payment complements?
- It reads CFDI 4.0. Version 3.3 files are recognised and listed as unsupported, without adding them up. From the payments 2.0 complement we take the total amount and the related documents; payroll and other complements are listed as present, without a breakdown.
- Why are the totals split by currency?
- Because adding pesos and dollars makes no sense, and converting them would mean choosing an exchange rate for you. Each summary row is one invoice type in one currency, with amounts added exactly, without rounding errors.
- Does this check that my invoices are authentic?
- No. We read what the XML says, but we do not verify the digital seal or ask SAT whether the CFDI is valid or cancelled. Use the SAT CFDI verification service with the UUID for that.