Free SAF-T (PT) Checker
HVR's SAF-T checker reads your SAF-T (PT) file inside your browser and runs three checks in seconds: whether the AuditFile/Header structure is complete, whether the issuer's NIF has a valid check digit, and whether the declared number of documents matches what the file contains. The file never leaves your computer.
What the checker confirms
- File structure — confirms the XML has the AuditFile root and the Header, and shows the version, fiscal year and period (StartDate to EndDate). Missing header fields trigger a warning.
- Issuer NIF — validates the TaxRegistrationNumber against the Portuguese check-digit algorithm (modulo 11). A NIF with a wrong check digit gets the file rejected.
- Documents and totals — compares the NumberOfEntries declared under SalesInvoices with the invoices actually in the file, and shows TotalDebit, TotalCredit and cancelled documents. In an accounting SAF-T, or a month with no sales, a missing SalesInvoices section is only a warning.
It does not replace the Tax Authority's validation on the e-fatura portal or an accounting review: it does not check VAT rates, customer NIFs, document series or ATCUD codes.
Privacy: everything runs in your browser
The file is read locally with the browser's FileReader and DOMParser functions. Nothing is uploaded: the content never reaches HVR's servers or anyone else's. You can confirm it by going offline once the page has loaded — the check still works. Only if you ask for the result by email is a summary of the three checks and the file name sent.
SAF-T (PT) legal basis
SAF-T (PT) is the standard audit file created by Portaria 321-A/2007 of 26 March. The current data structure (version 1.04_01) comes from Portaria 302/2016 of 2 December, which also created the account taxonomies used in the IES annual return.
Anyone issuing invoices in Portugal must report their details to the Tax Authority by the 5th day of the month after issue (article 3(2) of Decree-Law 198/2012). Reporting is done by real-time webservice, by uploading the invoicing SAF-T (PT) file, or by direct entry on the Portal das Finanças (article 3(1)); businesses required to produce SAF-T must use one of the first two routes (article 3(3)).
How to use it
- Export the month's invoicing SAF-T (PT) from your invoicing software.
- Open this page, choose the .xml file and read the results.
- If a check fails, fix it in the software and export again before submitting on e-fatura.
For a full analysis — VAT anomalies, EU VAT numbers against VIES, period comparisons — use SAFTPT.com, HVR's platform, or talk to our team of certified accountants.
Frequently asked questions
What is the SAF-T (PT) file?
SAF-T (PT) — Standard Audit File for Tax — is the standardized XML file that certified invoicing and accounting software exports for reporting to the Portuguese Tax Authority (Ordinance 321-A/2007 and later amendments). It has two variants: invoicing (monthly reporting) and accounting (annual, for IES).
When must the invoicing SAF-T be reported?
Invoice data must be reported to the Tax Authority by the 5th day of the month following issue, via webservice, SAF-T upload on the e-fatura portal, or manual entry (for small volumes).
Does my data leave the browser?
No. This tool runs 100% in your browser: the file is read locally and no data is sent to any server. You can confirm by going offline after the page loads — verification keeps working.
What does this free checker validate?
Three quick checks: file structure (AuditFile/Header, version, period), issuer NIF validity (check digit) and document coherence (NumberOfEntries vs actual documents, declared totals, cancelled documents). It does not replace the Tax Authority's full validation or a tax analysis.
How is SAFTPT.com different?
SAFTPT.com is HVR's full platform: fiscal anomaly detection (VAT, EU NIFs/VIES, suspicious patterns), period-over-period comparison, financial statements and IES support. This free checker covers only the 3 basic sanity checks.