CFDI XML to PDF
Turn the XML of a Mexican CFDI invoice into a readable, printable PDF without uploading it.
Drop your CFDI invoice XML here
Converted in your browser: the file is never uploaded.
Type and size are checked when you drop it
How do you convert a CFDI invoice XML to PDF?
To turn the XML of a Mexican invoice into a PDF, drop the CFDI .xml file on this page and click “Create PDF”: you get a Letter-size sheet with the issuer, recipient, line items, taxes, totals and the timbre (the SAT stamp) data, ready to read or print. A CFDI is Mexico's electronic invoice, and the XML file is the invoice itself. The tool accepts versions 4.0 and 3.3 and shows complements such as payments or payroll with all their data. It reads the XML and lays it out: it does not verify the digital seal or check with the SAT, Mexico's tax authority, so it cannot tell you whether the invoice is valid or cancelled. It converts one file at a time, up to 5 MB, for free and without signing up, and the file is processed in your browser, not uploaded.
How to use CFDI XML to PDF
- Get the XML from your supplier: it is the file ending in .xml that they send by email or publish on their portal, not the PDF that sometimes comes with it.
- Drop the file on the upload area or pick it from your computer. One file at a time, up to 5 MB. Only CFDI 4.0 and 3.3 are accepted; any other XML is rejected with a message and a link to the XML Formatter.
- Read the summary (issuer, recipient, type, total, tax folio, line items and complements) and any warnings. A warning may say, for example, that the XML has no timbre or that a complement is shown without a layout of its own.
- Click “Create PDF”, then “Download PDF”. The file is named after the XML with a .pdf extension. Before you share it, look through the pages, and if you need to know whether the invoice is still valid, check it with the SAT's CFDI verifier.
Privacy
Common use cases
Read an invoice that arrived only as XML
A Mexican supplier sends an .xml file and you need something you can read, attach to a payment request or print. You get a black-and-white Letter page with the folio fiscal (UUID) in the header and the timbre block at the end.
Archive the month's expenses as PDF
Convert each invoice to keep a readable copy next to its XML. Always keep the original XML: it is the tax document, and the PDF only presents it.
Understand a payment complement without opening the XML
The payments complement appears as a list of every element and attribute, in the order of the XML, with a warning that it has no layout of its own. You do not have to read the tags by hand.
Check a payroll receipt
In a payroll CFDI the issuer is the employer and the recipient is the employee. The PDF shows both RFC numbers (the Mexican tax IDs) and the folio fiscal; the payroll complement comes out as a plain list of its data.
Frequently asked questions
Is the PDF a valid tax document?
No, the tax document is the XML. Under Mexico's Federal Tax Code (art. 29), a printed copy “only presumes the existence” of the invoice. This tool just reads the XML and presents it; it does not verify the digital seal or check with the SAT. Keep the original XML and use it as your record.
What does the PDF contain?
Issuer and recipient (RFC, name, tax regime and, for the recipient, tax address and CFDI use), the invoice data (issue date, payment form and method, currency and the issuer's certificate serial number), line items with their amounts and taxes, subtotal, taxes and total. If the XML has a timbre, the PDF adds the folio fiscal (UUID), the certification date, the certification provider's RFC, the serial numbers, both digital seals, the original string and the legend “Este documento es una representación impresa de un CFDI”, which stays in Spanish. This version has no barcode: it identifies the invoice by its folio fiscal, which rule 2.7.1.7 of the Mexican tax resolution (Resolución Miscelánea Fiscal) accepts in its place. The issuer's certificate, which is base64 text in the XML, is not printed. Official catalog descriptions, such as payment forms, also stay in Spanish.
How do I know whether an invoice is still valid or was cancelled?
This tool cannot tell, because it does not query the SAT. To check the status of an invoice, use the CFDI verifier that the SAT publishes on its website. A PDF that is created without errors only means the XML could be read, not that the invoice is still in force.
Does it handle payment complements and payroll receipts?
Yes, but without a dedicated layout. The timbre has its own block. Any other complement, such as Pagos (payments), Nómina (payroll) or Carta Porte, comes out as a list of all its elements and attributes exactly as they appear, with a warning. If the XML has an Addenda, which holds commercial rather than tax data, it is not included and the PDF only reports how many elements it has.
Is my invoice uploaded to a server?
No. The XML is read and the PDF is created in your browser. To run, the page downloads its own files from this site, including a font, but none of your invoice data is sent. Your browser keeps only this site's usage history (tool, date and the size of the file and of the PDF), and you can clear it in Recents. It does not keep the file name, which is sometimes the folio fiscal, or any invoice data.
Why does my XML not convert?
The tool rejects an empty file, XML that is not well formed, a file that is not CFDI 4.0 or 3.3 (for example, version 3.2 or an unrelated XML), a file with a DOCTYPE or ENTITY declaration, a file over 5 MB, an invoice with more than 2,000 line items, or XML that is too large. It shows the reason in each case and, when the problem is the XML format, links to the XML Formatter. A CFDI 3.3 does convert, with a warning: since April 1, 2023 only version 4.0 can be issued.