DAT files

BIR DAT File Guide for the Philippines

What BIR .DAT files are, which submissions use them (SLSP, SAWT, QAP, alphalist), how they're validated and submitted, and how clean books generate them all.

9 min read Updated June 17, 2026
On this page

Sooner or later, BIR compliance stops being about filling in a form and starts being about producing a file. A .DAT file is the machine-readable format the BIR uses to ingest your periodic summaries — your list of sales and purchases, your list of payees, your alphalist of withholding. It isn't a return you eyeball; it's a strictly-structured data file the BIR's tools either accept or reject. This guide explains what DAT files are, which submissions use them, how they're validated and sent, the error classes that trip people up, and why one clean set of books makes all of them come out the same.

The short answer

A BIR .DAT file is how the Bureau receives bulk, line-by-line data it would never want typed into a form — every sale and purchase, every payee you withheld from, every entry in an alphalist. You generate the file with the BIR's offline data-entry tool (or software that writes the same layout), run it through the validation module to confirm the structure is correct, and then submit it through the BIR's electronic channels. Get the books right and the file is just an export; get the books wrong and the validator will tell you — usually in a message that's terse and exact.

Who this guide is for

  • Business owners who've been asked to submit an SLSP, QAP, or alphalist and have never produced a DAT file before.
  • Freelancers and professionals who file a SAWT to claim their withholding credits and keep hitting validation errors.
  • Bookkeepers and accountants who assemble these files for clients and want a clean pipeline instead of a re-keying scramble.

What a DAT file actually is

Think of a .dat file as a tightly-formatted text file that encodes rows of data in a layout the BIR's systems can parse automatically. It isn't meant to be read or edited by hand — open one in a text editor and you'll see delimited fields, header and detail records, and control totals, not a friendly form. The BIR defines the exact structure for each submission type, and the matching offline tool writes that structure for you so you don't have to. The whole point is machine ingestion: instead of someone re-typing your hundreds of invoices into a portal, the BIR loads your file directly. For the underlying idea in more depth, see BIR DAT files explained.

Because the format is rigid, a DAT file is valid or it isn't — there's little middle ground. That's a feature: it forces the data to be complete and internally consistent before the BIR will accept it.

Which submissions use DAT files

DAT files show up across VAT and withholding compliance. The big four:

  • SLSP — Summary List of Sales and Purchases. The VAT taxpayer's line-by-line list of sales and purchases. See the SLSP guide.
  • SAWT — Summary Alphalist of Withholding Taxes. The payee's list of creditable-withholding certificates being claimed. See the SAWT guide.
  • QAP — Quarterly Alphalist of Payees. The withholding agent's list of everyone they withheld from in the quarter. See the QAP guide.
  • Alphalist. The year-end consolidated roll-up of payees and employees. See the alphalist guide.

Different submissions, same idea — each is a structured list the BIR ingests as a DAT file rather than a hand-typed form. Note that DAT files are for these summaries and lists; the e-filing returns themselves (the VAT and withholding forms) generally go in as XML, a separate pipeline covered in the BIR XML filing guide.

How a DAT file gets built, validated, and submitted

The lifecycle is the same regardless of which summary you're filing: you assemble the data, encode it into the DAT layout, prove it's structurally sound, and then transmit it.

  1. 1

    Assemble the data

    Gather the period's transactions — sales, purchases, or payees — from your books, with the supporting details (names, TINs, amounts) each submission needs.

  2. 2

    Encode into the DAT layout

    Enter the data in the BIR's offline data-entry tool for that submission, or generate the file directly from software that writes the same layout, so you skip the re-keying.

  3. 3

    Run the validation module

    Pass the file through the BIR's validation tool. It checks structure, required fields, and reference data and either certifies the file or lists the errors.

  4. 4

    Fix and re-validate

    Correct anything the validator flags — most fixes are at the source (a wrong TIN, a mismatched total) — and re-run until the file passes cleanly.

  5. 5

    Submit through the BIR's channel

    Transmit the validated file through the BIR's prescribed electronic submission channel for that file type, and keep the confirmation.

  6. 6

    Archive the file and proof

    Retain the validated DAT file and the submission acknowledgement with your records, so you can reproduce exactly what you sent.

Common error classes

DAT rejections look intimidating but almost always fall into a few buckets. Knowing the bucket tells you where to fix it — and the fix is usually in your data, not the file:

Error classWhat it usually meansWhere to fix it
Structure / layoutWrong tool version, malformed records, missing required fieldRe-generate with the current tool/software
Reference dataInvalid or mismatched TIN, name, or RDO codeCorrect the master data, then re-export
Total / control mismatchDetail rows don't foot to the header control totalsFix the source figures in your books
Period / identity mismatchWrong period, taxpayer, or form details on the fileRe-stamp the file's header from the correct period
Duplicate / sequenceRepeated entries or out-of-order recordsDe-duplicate at the source
Typical DAT validation problems and where they come from.

SLSP files have their own recurring pitfalls — see common SLSP DAT file errors for the ones that surface most. The pattern holds across all of them: a validator error is a symptom; the cure is clean, consistent source data.

How this connects to your books

Here's the quiet truth about DAT files: the file is the easy part. The hard part is that the data inside it has to match your books, your certificates, and your returns. When your transactions live in a real double-entry ledger — each sale split into net and output VAT, each withheld payment carrying its payee and ATC — every DAT file is just a different view of the same posted entries. The SLSP is your sales and purchases; the QAP and alphalist are your withholding; the SAWT is your claimed credits. Build them from one source and they can't disagree. Reconstruct each one separately in a spreadsheet and you've signed up for a reconciliation problem every period — which is precisely what the validator (and later the BIR's cross-checks) will surface.

Generate clean DAT files from your books

mybizmate.io keeps your sales, purchases, and withholding in a single double-entry ledger and produces the BIR DAT files — SLSP, SAWT, QAP, alphalist — plus the XML returns from those same entries, so your files validate because the underlying data already foots.

Common mistakes

  • Hand-editing a DAT file. The layout is exact; opening one in a text editor to 'just fix a number' usually corrupts it. Fix the source and re-generate.
  • Using an outdated tool version. The BIR updates its offline and validation tools; an old version can produce a file the current channel rejects.
  • Dirty master data. A single wrong or missing TIN can fail an otherwise-perfect file — keep your customer, supplier, and payee records clean.
  • Rebuilding each summary separately. Re-keying the SLSP, QAP, and alphalist by hand guarantees they'll drift apart and mismatch each other.
  • Not keeping the validated file and acknowledgement. If you can't reproduce exactly what you submitted, you can't defend it later.
What is a BIR DAT file?

It's the machine-readable data file the BIR uses to receive bulk submissions like the SLSP, SAWT, QAP, and alphalist. It's strictly structured — header and detail records with control totals — and meant to be generated by a tool and validated, not typed or edited by hand.

Which submissions require a DAT file?

The common ones are the Summary List of Sales and Purchases (SLSP), the Summary Alphalist of Withholding Taxes (SAWT), the Quarterly Alphalist of Payees (QAP), and the year-end alphalist. These are the line-by-line lists the BIR ingests as data rather than as a printed form.

What's the difference between a DAT file and an XML file?

DAT files carry the summaries and alphalists — the lists. XML is generally the format for the e-filing returns themselves (the VAT and withholding forms). They're two different pipelines that should both come from the same books; see our BIR XML filing guide for the returns side.

How do I validate a DAT file before submitting?

You run it through the BIR's validation tool for that submission type. The validator checks the file's structure, required fields, and reference data, then either certifies it or lists the errors to fix. Always validate until the file passes cleanly before you transmit.

Why does my DAT file keep getting rejected?

Almost always a structure or reference problem — an outdated tool version, a malformed record, an invalid or mismatched TIN, or detail rows that don't foot to the control totals. Read the validator's message to find the class of error, then fix it at the source data and re-generate rather than editing the file.

Can software generate BIR DAT files for me?

Yes — software that writes the BIR's prescribed layout can generate the DAT files directly from your books, so you skip re-keying into the offline tool. You still validate and submit through the BIR's channels, and you remain responsible for the accuracy of what you file. No software files on your behalf or replaces BIR registration.

Official references

Always confirm current forms, rates, thresholds, and deadlines against official BIR issuances before you file.

This article is general information on Philippine bookkeeping and tax compliance, not legal, accounting, or tax advice. mybizmate.io is compliance-supporting software — it helps you prepare books, reports, and BIR-ready files, and is not a substitute for BIR registration, for filing your returns, or for advice from a qualified professional. Always confirm current BIR rules before you file.

Ready when you are

Start your books today. File with confidence later.

Full access for 14 days. No credit card — sign in with Google and you're recording in minutes.