NFS-e Nacional is a Windows application that issues and queries the National Standard NFS-e (Brazil's electronic service invoice) directly on the government APIs, with no intermediary provider. It uses the company's A1 digital certificate, generates the DANFSe (the invoice's printable PDF) and exports XML, PDF and spreadsheet. The app starts in Restricted Production (the test environment), and production is only turned on by an explicit choice in the company profile. In the browser, there is a version that generates the DANFSe from the XML without sending the file to anyone.
This page is a translation of the Portuguese site. Most programs have a Brazilian Portuguese interface; check each repository for the available languages.
Issues NFS-e on Sefin Nacional, looks them up by key and cancels invoices.
Downloads issued and received invoices through the ADN, starting from the last NSU.
Generates the DANFSe inside the app, following technical note NT 008/2026.
Validates the XML against the official XSD and signs it before sending.
Fills in the customer's details from the CNPJ (company tax ID) or the CEP (postal code).
Emails the DANFSe and XML to the customer after authorization.
Exports an .xlsx spreadsheet and XMLs, and also has a command line.
Network version: one server PC, with the others accessing it through the browser.
Who it is for
Service providers and accounting firms
Requirements
Windows: the NFSE_Nacional.exe executable is on the releases page.
The company's A1 digital certificate (.pfx) to issue invoices.
To generate the DANFSe from the XML, a browser is enough.
Frequently asked questions
Is NFS-e Nacional free?
Yes. NFS-e Nacional is free and open source, under the AGPL-3.0 license.
Do I need a provider or intermediary system?
No. The app talks directly to the government APIs: Sefin Nacional to issue, and the ADN to download issued and received invoices.
Do I need a digital certificate?
To issue, yes: the A1 certificate (.pfx). It stays on your computer, with its password in the Windows Credential Manager, and never goes into the repository or the executable.
Does the app already issue in production?
It starts in Restricted Production and only switches to production by an explicit choice in the company profile. According to the README, Restricted Production was tested with a real A1 certificate, but issuing in real production has not yet been done through the app.
Can I generate the DANFSe from the XML in the browser?
Yes. The web version generates the DANFSe from NFS-e XML files, including the cancelled mark when the event XML is included. Nothing leaves the browser.
What happens if the connection drops during issuing?
The invoice is saved as pending before it is sent. Afterwards the app queries Sefin and only resends the same DPS (the service provision declaration) if Sefin confirms it does not exist.
Edit the text in a PDF, annotate, sign digitally, redact sensitive data, fill in forms, rearrange pages and protect with a password. Also runs in the browser.