CFDI XML to PDF

Drop your CFDI .xml files, or the .zip you downloaded from the SAT portal, and click Convert to PDF. You'll get a table with the issuer, receiver, total and UUID of every invoice, a PDF for each one and a button to download them all as a single ZIP.

CFDI XML to PDF

Turn Mexican CFDI 4.0 and 3.3 XML invoices into printable PDFs with the SAT QR code, UUID and digital seals. One file or a whole ZIP from the SAT, converted in your browser.

Drop your CFDI XML files here or click to choose them

CFDI 4.0 or 3.3 .xml files, as many as you like, or a .zip full of them

Your XML files are read inside this browser. Nothing is uploaded.

Why I built this

If you've done business in Mexico, you know the routine. Every invoice is an XML file, a CFDI, stamped by a PAC and registered with the SAT. The XML is the legal document. The trouble is that nobody can read it. Your accountant wants a PDF, the client's accounts payable team wants a PDF, and whoever signs off on expenses definitely wants a PDF.

Most invoicing systems create the PDF next to the XML when the invoice is issued. The headache starts when you only have the XML: a supplier who sends just the .xml, a bulk download from the SAT portal, or an old billing system you can't log in to anymore. The SAT portal will give you the printed version, but one invoice at a time, after you sign in with your e.firma or password. That's fine for one invoice. It's miserable for sixty.

The free converters I tried before writing this one weren't much better. A couple still only handled CFDI 3.3, a browser extension choked on 4.0, and nearly all of them wanted the file uploaded to a server I knew nothing about. An invoice carries RFCs, names, amounts and the full digital seal. I'd rather not hand that to a random website, so this tool does all the work inside your browser.

What ends up on the PDF

The layout follows what Mexican accountants expect to see on a representación impresa, the printed version of a CFDI:

  • Issuer (emisor) name, RFC, tax regime and the postal code where the invoice was issued
  • Series, folio, issue date, invoice type and CFDI version
  • The fiscal folio (UUID), the issuer's certificate number, the SAT certificate number and the stamp date
  • Receiver (receptor) name, RFC, fiscal postal code, tax regime and CFDI use
  • Every line item (concepto) with its SAT product key, quantity, unit, description, unit price, discount and amount, plus the taxes on that line
  • Subtotal, discount, IVA and IEPS per rate, ISR and IVA withholdings, and the total, also written out in words the way Mexican invoices do it: (CATORCE MIL QUINIENTOS PESOS 00/100 M.N.)
  • Payment form, payment method (PUE or PPD), currency, exchange rate and payment terms
  • The SAT verification QR code, the CFDI seal, the SAT seal and the original string of the certification complement

Catalog codes like 601, G03 or PPD are printed with their description next to them, so nobody has to look up what uso CFDI G03 means. It's general expenses, in case you were wondering.

CFDI 4.0 added a few fields that 3.3 didn't have, such as the receiver's postal code, the receiver's tax regime and the export key. When a 3.3 invoice doesn't carry them, those lines are simply left out instead of showing empty boxes.

Payment receipts with the complemento de pagos 2.0 get an extra table listing each related invoice, the installment number, the previous balance, the amount paid and what's still owed. Related CFDIs, like the invoice a credit note applies to or the one a replacement substitutes, appear with their relationship type.

How to use it

  1. Drop one or more .xml files onto the box, or a .zip that has them inside.
  2. Click Convert to PDF.
  3. A table lists every file with its issuer, receiver, total and UUID. Open any PDF to check it, download it, or grab the whole batch as one ZIP.

Each PDF keeps the name of its XML file. SAT downloads are named after the UUID, so your PDFs line up one to one with the XMLs in the folder. That helps a lot when your accountant asks for both.

A whole month at once

If your accountant would rather get one file than three hundred, merge the PDFs into a single document after you download the ZIP.

This is the part I cared about most. The SAT bulk download (descarga masiva) hands you a ZIP of XML files for whatever period you ask for. You can drop that ZIP straight in. The tool reads every XML inside, builds a PDF for each, and gives you back one ZIP full of PDFs. A few hundred invoices take seconds on an ordinary laptop, because nothing travels over the network.

Files that aren't CFDIs, or that are damaged, don't stop the batch. They show up in the table with the reason next to them and everything else converts as usual.

Real situations

You're an accountant closing the month for a client. They sent a ZIP from the SAT portal and you need printable copies for the expense file. Drop the ZIP in, download the ZIP of PDFs, and you're done. Nobody had to share their e.firma with you.

You work in accounts payable at a US or European company with a Mexican supplier. The supplier sends XML only, because in Mexico that's the legal document. Your approval workflow wants a PDF. Convert it here and attach it. The issuer, the amounts and the UUID are easy to find even if Mexican tax vocabulary isn't your thing.

You're a freelancer stamping invoices through a PAC that only gives you the XML. Some free stamping services work exactly like that. Now you can send your client a readable copy along with it.

You're going through old invoices for an audit. The system that created them is gone and the PDFs went with it, but the XMLs are still in the archive. CFDI 3.3 files work too.

Is the PDF valid?

No phone at hand? Take a screenshot of the QR on the PDF and read it with our QR code scanner to get the SAT verification link.

The XML is the invoice. The PDF is a printed representation of it, and that's exactly what the SAT calls it. It doesn't have to come out of the issuer's software to be useful. Anyone can check the invoice by scanning the QR code, which opens the SAT verification page with the UUID, both RFCs, the total and the last eight characters of the seal already filled in.

What this tool doesn't do is verify the digital seal or ask the SAT whether the invoice is still active. An invoice that was cancelled last week will still produce a perfectly tidy PDF. Before paying a large invoice from a new supplier, I'd always scan the QR and look at the status the SAT shows.

If the XML has no TimbreFiscalDigital, meaning a PAC never stamped it, the PDF says so in a red banner at the top. An unstamped XML isn't a valid CFDI, and the PDF shouldn't pretend otherwise.

Privacy

Your XML files are read with your browser's own file APIs and turned into PDFs on your computer. Nothing is uploaded and nothing is stored. Try it: load the page, switch off your Wi-Fi and convert a ZIP of invoices. It still works.

The page also refuses XML files with DOCTYPE or entity declarations. Real CFDIs never use them, and blocking them shuts out a known family of malicious XML tricks.

What it won't do

Got a European invoice instead, like an XRechnung or a Factur-X PDF? The e-invoice viewer opens those.

It doesn't read CFDI 3.2, which the SAT retired years ago, or the separate CFDI de retenciones format. Payroll receipts (nómina) convert fine, but the payroll complement itself isn't broken down line by line. The PDF just notes that it's there. It won't add your logo either. The layout is plain on purpose so it prints cleanly in black and white.

If you need something it doesn't do yet, use the feedback link on this page. I read every message.

Frequently Asked Questions About Converting CFDI XML to PDF

Similar tools to explore

VCF to CSV Converter

Convert VCF to CSV or Excel in your browser. Merge several vCard files, remove duplicate contacts and get one clean spreadsheet. Nothing is uploaded.

Convert to CSV

Tab Delimited File to Excel Converter

Paste tab-separated data or upload a .tsv file and get back a clean XLSX with the columns lined up. No account, and an uploaded file is deleted the moment the conversion finishes.

Convert to Excel

Google Maps Timeline Viewer

Open your Google Maps Timeline export right in the browser: coverage calendar, missing days, visits, and distance stats. The file never leaves your device.

View My Timeline

Number to Words Converter

Type a number and get it written out in words, as a cheque amount in dollars and cents, or as an ordinal. Works in seven languages and runs in your browser.

Convert to Words

E-Invoice Viewer

Drop an XRechnung or UBL XML file, or a ZUGFeRD or Factur-X PDF, and read it as a normal invoice. Totals and VAT get checked, and nothing leaves your browser.

View Invoice

JSON to TOON Converter

Convert JSON to TOON and TOON back to JSON, with a real GPT token count for both so you can see how many tokens you save. Runs in your browser.

Convert to TOON