Skip to main content

Philippines TIN Generator

Valid Philippine TIN generator for software testing. Excellent for QA.

Waiting for generation...

About Philippines TIN

The TIN is the tax identification number issued by the BIR in the Philippines for taxation purposes.

This generator provides valid 9 or 12-digit TIN numbers respecting Philippine formats and BIR branch codes (defaulting to 000) for software testing.

Anatomy & Structure of TIN — Philippines

The Philippine TIN consists of 9 or 12 digits structured in 3 parts:

PositionFieldLengthMeaning & RuleExample
1 to 8Base Sequential Number8 digitsUnique sequential identifier issued by the BIR12345678
9Check Digit1 digitCalculated via Modulo 11 with weights [9, 8, 7, 6, 5, 4, 3, 2]9
10 to 12Branch Code3 digits000 = Head Office / Main; 001 to 999 = Branches000

Official Algorithm (Weighted Modulo 11 — BIR Philippines)

Check digit calculation for Philippine TIN:

S = Σ d[i] * W[i] (i=0..7); R = S mod 11; DV = (R === 0 || R === 1) ? 0 : 11 - R
  1. 1. Multiply the first 8 digits by weights: W = [9, 8, 7, 6, 5, 4, 3, 2].
  2. 2. Sum all products into total S.
  3. 3. Compute remainder R of S divided by 11.
  4. 4. If R is 0 or 1, check digit is 0; otherwise DV = 11 - R.

Frequently Asked Questions