A Brazilian NF-e is an XML authorized by the state SEFAZ. Paste one, pick the model, and the validator confirms the required blocks are present and recomputes the access key check digit when it finds a key.
- models: NF-e 55 and NFC-e 65
- 2
- digits in the chNFe access key
- 44
- required blocks, 7 for NFC-e
- 6
The blocks it looks for
- infNFe. The invoice body that holds everything else.
- ide, emit, dest. Identification, the issuer and the recipient.
- det and ICMSTot. One or more line items, and the ICMS totals.
- infNFeSupl, NFC-e only. The supplementary block with the QR code and consultation URL.
The access key check digit
- 1Find
The key is read from a chNFe element or an Id="NFe..." attribute.
- 2Weight
The first 43 digits are weighted 2 to 9, cycling from the rightmost.
- 3Divide
The weighted sum is divided by 11.
- 4Compare
A remainder of 0 or 1 gives 0, otherwise 11 minus the remainder. It must equal the 44th digit.
From a CFO lens, accountability sits with us. Outputs must be verified to a standard we would stand behind as our own.
Jemma EwinCEO & Co‑Founder · Global CFOJemma Ewin, CEO & Co‑Founder · Global CFO- Missing block found by SEFAZ
- A mistyped key found late
- XML sent out to check
- Each block present or missing
- Key check digit recomputed
- The XML stays in your browser
Who it is for: AP teams receiving NF-e from Brazilian suppliers, and finance teams checking what their issuer software produced. Paste the XML, not the DANFE PDF. The page is published in Portuguese and English.
Further reading
Questions
Does this authorize or replace SEFAZ validation?
No. Authorization, CST codes and full schema conformance are handled by your issuer software and the state SEFAZ web service.
What is different for NFC-e?
NFC-e, modelo 65, also carries infNFeSupl with the QR code and consultation URL, so the tool requires it for that model.
What if the XML has no access key?
The block check still runs. The key check only applies when a 44-digit key is found.
Is my XML uploaded?
No. The check runs entirely in your browser.
