DocFig Convert a statement

NF-e XML to DANFE PDF

Turn the XML of a Brazilian electronic invoice (NF-e) into its DANFE, the printed version that travels with the goods. Choose one or more XML files, or a ZIP of them, and download a DANFE PDF for each invoice. Everything runs in your browser: the XML is not sent to any server.

Made in your browser Your XML never leaves your device

  • No upload
  • No account
  • Nothing stored
How can I check?

Choose NF-e XML files or drop them here

XML: NF-e model 55, version 4.00 ZIP: several XML files

Try a sample:

  • Never uploadedRead in your browser, on your device
  • NF-e 4.00Authorized XML (nfeProc) or NFe, or a ZIP
  • Key checkedCheck digit, protocol and environment
  • Free, no accountNo sign-up, on phones and computers

Three steps

How to convert an NF-e XML to a DANFE PDF

  1. 1Choose the NF-e XMLOne or more .xml files, or a .zip of them. The authorized XML (nfeProc) carries the protocol.
  2. 2Check the listEach invoice shows its number, issuer, total and status, such as authorized, no protocol or test.
  3. 3Download the DANFEOne PDF per invoice, or all of them in one ZIP.

What a DANFE is, and why you need one

In Brazil, a sales invoice for goods is an NF-e (Nota Fiscal Eletrônica): an XML file signed by the seller and authorized by the state tax office, SEFAZ. The DANFE (Documento Auxiliar da NF-e) is its printed companion. According to the official manual, it travels with the goods, collects the buyer's signature on delivery and helps a buyer who does not issue NF-e record the invoice. If a Brazilian supplier sent you only the XML, this page prints the DANFE from it.

One XML file or a whole folder

Choose the XML file above, several at once, or a ZIP of them. Each invoice appears in a list with its number, series, issuer, issue date, total in reais and status. Download PDF gives one DANFE; Download all DANFEs gives a ZIP with one PDF per invoice, each named after its 44-digit access key.

The best file is the authorized XML, which starts with nfeProc and carries the authorization protocol. A bare NFe without the protocol also opens, but its DANFE is marked as having no legal value.

What is on the DANFE

The PDF follows the A4 portrait layout of the DANFE technical manual (MOC 7.0, Anexo II), in the Times font the manual names. Text too long for its box is printed smaller and, at the limit, cut with an ellipsis; the full text stays in the XML. It has:

  • the receipt stub, the issuer block, entry or exit, number, series and sheet count;
  • a CODE-128C barcode of the access key, the key in eleven groups of four digits and the authorization protocol;
  • buyer, instalments or payment forms, tax totals (ICMS, ICMS ST, IPI, PIS, COFINS and the rest), carrier and volumes;
  • every item with code, description, NCM, CST or CSOSN, CFOP, unit, quantity, prices, ICMS and IPI, with the item's additional information under it;
  • the additional information, continued on the next sheet when it is too long for the first.

Invoices with many items get extra sheets, each with the full header and barcode, numbered "FOLHA 2/3" and so on. Labels stay in Portuguese, as on any DANFE.

Checks and limits

The tool checks the access key's check digit and reads the protocol. It warns, in the list and on the PDF, when the invoice comes from the SEFAZ test environment ("SEM VALOR FISCAL"), when the protocol is missing or is not an authorization, and when the check digit is wrong. It does not contact SEFAZ, so it cannot see a later cancellation: check the access key on the national NF-e portal. NFC-e files (model 65, with a QR code) and CT-e files are recognised and refused with a message instead of becoming a wrong PDF.

Nothing is uploaded

The XML is read on your device by scripts loaded from DocFig, and the PDF is drawn there with the pdf-lib library. The page only sends tiny counters with an event name and no invoice content. How to check this yourself.

Sources

Sources checked 28 October 2026. The sample invoices use fictional companies and people and pass the official NF-e 4.00 schema (package PL_009).

Questions

How do I convert an NF-e XML to PDF?

Choose the XML file on this page. The invoice appears in the list, and Download PDF draws the DANFE in your browser, with nothing to install and nothing uploaded.

Is a DANFE printed here legally valid?

The DANFE is the printed representation of the NF-e; the legal document is the XML authorized by SEFAZ. A DANFE made from the authorized XML shows the same data and the same access key, which anyone can check on the national NF-e portal.

Can I convert many NF-e files at once?

Yes. Choose several XML files or a ZIP of them, up to 500 at a time. Download all DANFEs gives a ZIP with one PDF per invoice, each named after its access key.

Why does my DANFE say SEM VALOR FISCAL?

Because the invoice was issued in the SEFAZ test environment, because the XML has no authorization protocol, or because the protocol is not an authorization. The list shows the reason for each invoice.

Does it work with NFC-e or CT-e files?

No. An NFC-e (model 65) has its own DANFE with a QR code, and a CT-e has a DACTE. Those files are recognised and refused with a message instead of becoming a wrong PDF.

Is the DANFE in English?

No. The labels stay in Portuguese, as on every DANFE, because the layout is set by the Brazilian manual. This page explains each block in English.