Skip to content
All tools
Free tool

Brazil NF-e structural validator

Paste an NF-e or NFC-e XML and check that the required structural fields are present, plus the 44-digit access key check digit. This is a structural, required-field check, not full SEFAZ schema conformance.

Your NF-e XML

Model
The standard electronic invoice.
The XML stays in your browser. Nothing is uploaded. Paste the XML, not the DANFE PDF.

Structural check

Paste an XML to run the check.

How it works

What this checks, and what it does not

A Brazilian NF-e is an XML authorized by the state SEFAZ. This tool confirms the top-level required markers are present and, when a chNFe access key is found, checks its 44-digit length and mod-11 check digit so you can catch an obvious problem early.

The infNFe core

Every NF-e carries an infNFe body with the ide identification block, emit issuer, dest recipient, one or more det line items, and ICMSTot totals. The tool checks each of these markers is present.

The 44-digit access key

The chNFe access key is 44 digits with a mod-11 check digit as its 44th. When the tool finds a key, in a chNFe element or an Id="NFe..." attribute, it recomputes the check digit and reports whether it matches.

Structure, not full conformance

This checks for the presence of required fields, not values, CST codes, or the full SEFAZ leiaute. Use your issuer software or the SEFAZ web service for full schema conformance and authorization.

Sources

The field list follows the national NF-e layout. Rules and layouts change, and details vary by state. Check your document against the primary sources below and your state SEFAZ.

This is a structural, required-field check offered as an example aid, not full SEFAZ schema conformance and not tax or legal advice. Rules change. Confirm any NF-e against the current SEFAZ layout and your state SEFAZ before relying on it.

Issue and reconcile NF-e without the spreadsheets

Rivane keeps NF-e issuance, access keys, and ledger entries in one place, so a validation pass is a formality.

Request demo