ZweiDeveloperTools
Share

NF-e Access Key Validator

Verify the validity of an NF-e access key (model 55) and extract its components. Supports simple validation or complete validation with emitter data.

ℹ️ How NF-e Access Key Validation Works

The NF-e access key is a 44-digit numerical sequence that uniquely identifies an Electronic Fiscal Note. Its structure is nationally standardized and composed of several fields. This tool allows you to validate this key based on its internal structure and, optionally, against provided emitter data.

  • Structure Validation: The tool first checks if the key has 44 digits and if its internal components (UF code, year/month, CNPJ, document model, series, document number, issuance form, numeric code) are valid according to the NF-e standards.
  • Check Digit Validation: The last digit of the access key is a check digit, calculated using the Modulo 11 algorithm on the previous 43 digits. This tool recalculates and verifies this digit to ensure the key's authenticity and integrity.
  • Simple Validation: Only checks the internal consistency and the check digit of the provided access key.
  • Complete Validation: In addition to simple validation, it compares the UF code, CNPJ, and year/month extracted from the access key with the emitter's data (CNPJ, State, and Issued Date) provided by the user. This ensures that the key corresponds to the specific emitter and issuance period.
  • UF Code (cUF): 2 digits - State Code of the issuer (IBGE standard).
  • Year and Month (AAMM): 4 digits - Year and Month of NF-e issuance.
  • CNPJ: 14 digits - Issuer's CNPJ.
  • Document Model (mod): 2 digits - Fiscal Document Model (55 for NF-e).
  • Dígito Verificador (DV): 1 dígito - Calculado usando o algoritmo Módulo 11.

Official Documentation

Frequently Asked Questions

Facts about the NF-e Access Key Validator

  • The NF-e Access Key Validator checks 44-digit keys.
  • The validation verifies the check digit in base 43.
  • The tool extracts and shows the key fields (UF, CNPJ, series).
  • The validation is performed in the user's browser.

© 2026 ZweiDeveloper. All rights reserved.