Free tool
Brazilian NFe key decoder
Paste a 44-digit Brazilian electronic invoice key (from the footer of any NFe) and see what each field means — issuing state, CNPJ, model, series, number, and more.
How the NFe key is structured
The Brazilian NFe access key is a 44-digit unique identifier defined by SEFAZ (Technical Note 2011/004). It appears in the footer of any Electronic Invoice, DANFE, or XML and has the following structure:
cUF(2) AAMM(4) CNPJ(14) mod(2) serie(3) nNF(9) tpEmis(1) cNF(8) cDV(1)
- cUF (2) — IBGE code of the issuing state (e.g., 35=SP, 33=RJ, 31=MG, 53=DF) - AAMM (4) — year-month of issue (2-digit year + 2-digit month) - CNPJ (14) — issuer CNPJ - mod (2) — document model (55=NF-e, 65=NFC-e consumer, 57=CT-e freight bill) - serie (3) — NFe series - nNF (9) — sequential invoice number - tpEmis (1) — emission type (1=normal, 2..9=contingencies) - cNF (8) — random numeric code to avoid collisions - cDV (1) — mod-11 check digit over the preceding 43 digits
This decoder validates the check digit with the official algorithm and identifies the state, region, model, and emission type.
Looking for tax enforcement cases?
Vigilant searches for labor lawsuits, tax enforcement actions, and court cases tied to a CNPJ across 12 Brazilian court sources.
Search cases for this company