Philippine Taxpayer Identification Number (TIN)
Detects Philippine Taxpayer Identification Numbers (TIN) issued by the Bureau of Internal Revenue (BIR) under Section 236(j) of the National Internal Revenue Code. The base TIN is a 9-digit number (the 9th digit is a check digit), usually written XXX-XXX-XXX. Registered businesses append a branch code — historically 3 digits (000 for the head office, 12 digits total) and, since eBIRForms v7.9.6.0 (RMC No. 36-2026, April 2026), up to 5 digits (14 digits total).
- Type
- regex
- Engine
- universal
- Confidence
- medium
- Confidence justification
- Medium confidence: the 9/12/14-digit structure with optional dash grouping is common enough in unrelated numeric data (order numbers, phone fragments, other countries' IDs) that corroborating TIN/BIR keywords are required on every tier. The dash-separated XXX-XXX-XXX form plus label evidence raises precision substantially; no bare value-only tier is exposed.
- Jurisdictions
- ph
- Regulations
- National Internal Revenue Code of 1997 (Philippines), Data Privacy Act of 2012 (Philippines)
- Frameworks
- ISO 27001, ISO 27701
- Data categories
- pii, government-id, financial
- Scope
- narrow
- Risk rating
- 7
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Unsupported
Pattern
\b\d{3}[- ]?\d{3}[- ]?\d{3}(?:[- ]?(?:\d{5}|\d{3}))?\b
Corroborative evidence keywords
TIN, Taxpayer Identification Number, BIR, Bureau of Internal Revenue, tax identification, branch code, ID number, identification, ID card, license, permit, registration, certificate, data record, database record, record set, data extract, data export, database table, spreadsheet (+16 more)
Proximity: 300 characters
Should match
TIN: 123-456-789 as shown on the BIR certificate of registration— 9-digit individual TIN with dash grouping and TIN labelTaxpayer Identification Number 004-345-678-000 for the head office— 12-digit TIN with 3-digit head-office branch code 000The corporation updated TIN 123-456-789-00001 in eBIRForms after the branch-code expansion— 14-digit TIN with 5-digit branch code (RMC No. 36-2026)BIR records list the taxpayer identification number 123456789012 without separators— Unseparated 12-digit TIN (9-digit base plus 3-digit branch code)
Should not match
TIN 12-345-678 was rejected as invalid by the registration officer— Only 8 digits — too short for a 9-digit base TINCard number 4111111111111111 was charged for the annual registration fee— 16-digit payment-card run — no 9/12/14-digit boundary match inside a longer digit runРНОКПП 3184710691 belongs to the Ukrainian counterparty— Neighbouring format — Ukrainian 10-digit RNOKPP does not fit the 9+3/9+5 structureCall the Manila office at 0917-123-4567 tomorrow morning— Philippine mobile number near-miss — grouping does not fit XXX-XXX-XXX000-000-000-000— All-zeros TIN — matches structurally but is suppressed by AllDigitsSameFilter
Known false positives
- Bare 9-digit or 12-digit runs (US SSNs written without dashes, order numbers, PhilSys numbers in 4-4-4 grouping collapse to the same 12-digit run when unseparated) can match the structural regex. Mitigation: Every tier requires TIN/BIR keyword or label evidence within the 300-character proximity window; no value-only tier is exposed.
- The 9th digit is a BIR check digit whose algorithm is not publicly documented and cannot be expressed in regex, so structurally valid but non-issued numbers will match. Mitigation: Rely on structure, AllDigitsSameFilter (suppresses all-zeros/repeated-digit values, which defeat checksum-free matching) and mandatory keyword evidence.
- A longer dashed number such as 123-456-789-0001 partially matches on its 9-digit core. Mitigation: Keyword gating limits this to documents already discussing Philippine tax identifiers.
References
- BIR Revenue Memorandum Order No. 23-91 — New Taxpayer Identification Number (Supreme Court E-Library)
- BIR eFPS help — TIN is 9 digits plus 3-digit branch code (default 000)
- TIN branch code expansion from 3 to 5 digits (RMC No. 36-2026, eBIRForms v7.9.6.0)
- Philippines TIN number guide — 9-12 digit structure with check digit and branch code