Skip to content
NewParallel Run is here.See how it works →
NF-e check

NF-e validator: structure and access key checks for NF-e and NFC-e

A free browser check that an NF-e or NFC-e XML carries its required blocks, with a mod-11 check of the 44-digit access key.

A drawn scene of a long access key checked digit by digit.
The infNFe blocks, and a check digit that catches a broken key.

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

  1. 1Find

    The key is read from a chNFe element or an Id="NFe..." attribute.

  2. 2Weight

    The first 43 digits are weighted 2 to 9, cycling from the rightmost.

  3. 3Divide

    The weighted sum is divided by 11.

  4. 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 Ewin, CEO & Co‑Founder · Global CFO
BeforeWait for a rejection
  • Missing block found by SEFAZ
  • A mistyped key found late
  • XML sent out to check
With RivaneCheck first
  • Each block present or missing
  • Key check digit recomputed
  • The XML stays in your browser
A structural check. Authorization, CST codes and the full SEFAZ layout stay with your issuer software.

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.

Written byJemma EwinCEO & Co‑Founder · Global CFO

See Rivane on your own close

See the ledger, the close and reconciliation working together, and bring the questions that matter to your team.

Request a demo