How to use Chave de acesso NF-e
- 01Paste the key44 digits, spaces are fine.
- 02Read the partsUF, date, CNPJ, número.
- 03Check the DVAnd the CNPJ’s digits.

52 0604 33009911002506 55 012 000000780 …: Goiás, 04/2006.
The chave de acesso is built from fields of the invoice: state code, year and month, the issuer’s CNPJ or CPF, model, série, number, emission type, a random code and a modulo 11 check digit, as set out in the Manual de Orientação do Contribuinte. The tool splits it, checks the DV and checks the CNPJ or CPF inside.
Decodificar chave de acesso NF-e e NFC-e: the 44 digits printed on a DANFE are not random. Most of them are fields of the invoice, laid out in the Manual de Orientação do Contribuinte (MOC 7.0). The tool splits them and checks the DV and the CNPJ inside.
Os 44 dígitos da chave
- 2 digits: cUF, the IBGE code of the issuer’s state (35 São Paulo, 33 Rio de Janeiro, 31 Minas Gerais, 52 Goiás …).
- 4 digits: AAMM, year and month of issue.
- 14 digits: the issuer’s CNPJ, or a CPF padded with zeros.
- 2 digits: model, 55 for the NF-e and 65 for the NFC-e.
- 3 digits: série.
- 9 digits: the invoice number (nNF).
- 1 digit: tpEmis, the emission type (1 normal, others for contingency).
- 8 digits: cNF, a random code that protects the key.
- 1 digit: cDV, the check digit.
Cálculo do dígito verificador
Multiply the 43 digits by 2, 3, 4, 5, 6, 7, 8, 9 and then 2, 3 … again, starting from the rightmost digit. Add the products and divide by 11. The DV is 11 minus the remainder, and 0 when the remainder is 0 or 1.
The MOC’s example, 5206043300991100250655012000000780026730161, adds up to 644. 644 divided by 11 leaves 6, and 11 − 6 = 5, so the full key ends in 5.
Séries reservadas
Séries 000 to 889 are used by companies issuing from their own systems. 890 to 899 are NFA-e issued on a SEFAZ site with the SEFAZ’s CNPJ. 900 to 909 are companies issuing on the SEFAZ site, and 910 to 969 are issuers identified by CPF.
At a glance
- Price
- Free. No sign-up, no watermark.
- Privacy
- Your text stays in your browser. Nothing is uploaded.
- Works in
- Chrome, Edge, Firefox and Safari, on phones and computers
Questions
Does a valid key mean the invoice exists?
No. It means the digits are consistent. Only the SEFAZ knows whether the NF-e was authorised; use the Consulta NF-e on the national portal with the key.
How is the DV calculated?
Multiply the first 43 digits by 2, 3, 4, 5, 6, 7, 8, 9, 2, 3 … starting from the right, add, divide by 11 and subtract the remainder from 11. A remainder of 0 or 1 gives 0.
Why does the key show a CPF?
Some issuers are identified by a CPF instead of a CNPJ. The CPF is padded with zeros to 14 digits, and the MOC reserves séries 910 to 969 for those issuers.
Is the number sent anywhere?
No. The key is checked in your browser and nothing you type is sent to a server or saved.
Can I see the invoice items from the key?
No. The key only holds the fields above. The full invoice is on the SEFAZ or the national portal’s Consulta NF-e.
What about the new alphanumeric CNPJ?
The MOC 7.0 describes a key of 44 digits, so this tool accepts digits only. Keys with letters follow a newer technical note and aren’t covered yet.