Brazil NF-e and NFC-e XML Viewer and Bulk Export

Open one or many NF-e XML files to check the access key, see a DANFE-style summary with items and taxes, and list all invoices in one table to export to CSV or Excel.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add XML files

    One or many.

  2. 2
    Check the key

    And totals.

  3. 3
    Read the summary

    Items and taxes.

  4. 4
    Print it

    DANFE-style.

  5. 5
    Review the table

    All invoices.

  6. 6
    Export

    CSV or Excel.

About this tool

In Brazil, sales of goods are documented by the NF-e (Nota Fiscal Eletrônica, model 55) and, in retail to consumers, by the NFC-e (model 65). Each invoice is an XML file signed digitally by the issuer and authorised by the state tax authority, which returns a protocol. The XML is the legal document; the printed DANFE is only an auxiliary representation. Companies receive hundreds of these files from suppliers and must keep them for at least five years, check them before booking purchases and crediting taxes, and reconcile them with payments. The XML contains the 44-digit access key, which encodes the state, year and month, the issuer's CNPJ, the model, series, number, emission type and a random code, and ends in a check digit calculated by modulus 11. It then has the identification of the operation, the issuer and receiver with their CNPJ or CPF and state registration, each item with its code, description, NCM classification, CFOP, quantity, unit price and the ICMS, IPI, PIS and COFINS, the totals of products, discounts, freight, taxes and the invoice, and the authorisation protocol. This tool opens one or many XML files in your browser, checks the access key check digit and the arithmetic of the totals, shows a DANFE-style summary of the selected invoice with a printable version, and lists all invoices in one table with date, number, issuer, receiver, CFOPs, taxes, total, status and duplicates detected by access key. The table can be exported to CSV or Excel. A separate box checks any 44-digit access key and decodes its parts.

Who this is for

Accountants and bookkeepers, purchasing and receiving teams, small retailers checking supplier invoices, and developers testing NF-e integrations.

The access key

| Positions | Content | |---|---| | 1-2 | State code (e.g. 35 SP) | | 3-6 | Year and month of issue | | 7-20 | Issuer CNPJ | | 21-22 | Model (55 NF-e, 65 NFC-e) | | 23-25 | Series | | 26-34 | Number | | 35 | Emission type | | 36-43 | Random code | | 44 | Check digit (modulus 11) |

Checking authenticity

The tool reads and checks the content but does not validate the digital signature or the current status. To confirm that an invoice is authorised and not cancelled, query the access key on the national NF-e portal or your state's portal.

Taxes in the reform

From 2026, invoices start to show the test CBS and IBS of the consumption tax reform in new fields. The summary shows the traditional taxes; new fields can still be read in the XML.

Keeping the files

Store the XML files, not only PDFs, for at least five years, organised by month and supplier.

Limits

Special layouts such as CT-e, MDF-e and NFS-e are not covered. Not tax advice.

Worked example

A sample NF-e of R$1,240.00 with two items, ICMS of R$144 and a valid access key passes every check.

Quick facts

Frequently asked questions

What is the difference between NF-e and NFC-e?

NF-e (model 55) documents sales between companies and others; NFC-e (model 65) documents retail sales to consumers.

Is the DANFE the invoice?

No, the XML is the legal document; the DANFE is an auxiliary print.

How is the access key checked?

Its last digit is a modulus 11 check digit of the first 43.

Can I export many invoices at once?

Yes, to CSV or Excel, with duplicates flagged.

Does it check cancellations?

No, query the access key on the official portal.

Are my files uploaded?

No, they are read in this browser only.

Guides for this tool

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