Taiwan UBN Generator
Generate 8-digit Taiwanese Unified Business Numbers (統一編號) that pass the Ministry of Finance check — synthetic test data only
For Development & Testing Purposes Only - Synthetic Mock Data
Settings
1 valueGenerates one value with a valid checksum. Press ⌘/Ctrl+Enter for a fresh one.
Generated value
No value yet
Set options, then press Generate.
Generated values are valid in shape but randomized (Test Data).
Examples
Generated UBN
UBN · Generate00501503Weighted digit sum 10, so the value satisfies both the mod-5 and mod-10 rules.
Validate a pasted UBN
00501503Valid — weighted digit sum 10 is divisible by 5The validator shows the sum so the result is easy to audit.
Failing sum
00501502Invalid — weighted digit sum is 9, which is not divisible by 5A single changed digit breaks the checksum and is reported precisely.
About this tool
The Taiwan UBN Generator produces 8-digit Unified Business Numbers (統一編號), the identifier a business uses for VAT. Each digit is multiplied by 1, 2, 1, 2, 1, 2, 4 and 1, and the digits of every product are added together to form a checksum.
The Ministry of Finance accepts a number when that checksum is divisible by 5, a rule relaxed from divisible by 10 in 2023 to create more available numbers. When the seventh digit is 7, one more than the checksum is also accepted. Generated values additionally satisfy the older divisible-by-10 rule, so legacy validators that never adopted the relaxation still accept them.
These are synthetic values for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used. Everything runs locally in your browser.
What this tool does not do
- Validation checks the weighted sum only; it does not confirm business registration.
- The generator only emits values that are also divisible by 10, so the relaxed rule alone is not used for output.
- A passing UBN says nothing about the company's tax status.
- No Ministry of Finance lookup is performed.
How to use this tool
Generate one UBN
Click Generate to create an 8-digit number that passes the current check and the older mod-10 rule.
Copy the value
Copy it to a company fixture or download it as a .txt file.
Validate a pasted UBN
Switch to Validate to see the weighted digit sum and whether it is divisible by 5.
Use cases
Taiwanese B2B forms
Fill company tax-ID fields with 8-digit values that pass the Ministry of Finance check.
Legacy validator coverage
Check that an implementation still enforcing divisible by 10 accepts generated values.
Seventh-digit edge case
Test the special handling when the seventh digit is 7 and the sum plus one is used.
UBN weighting and rules
| Part | Rule |
|---|---|
| Length | 8 digits |
| Weights | 1, 2, 1, 2, 1, 2, 4, 1 |
| Sum | Digits of every weighted product are added individually |
| Current rule | Sum divisible by 5 (relaxed from 10 in 2023) |
| Seventh-digit 7 | Sum + 1 divisible by 5 is also accepted |
| Generated values | Also divisible by 10 for older validators |
The validator reports the weighted sum when the number fails.
Common mistakes
Mistake:Multiplying and summing whole products
Fix:Add the digits of each product, so 16 contributes 1 + 6, not 16.
Mistake:Requiring divisibility by 10 only
Fix:Since 2023 the Ministry of Finance accepts divisibility by 5.
Mistake:Ignoring the seventh digit
Fix:When it is 7, the checksum plus one may be used instead.
Frequently asked questions
Are these real UBNs, and can I use them in production?
No. They are synthetic test values for QA and development, never for real applications, KYC checks, tax filings or identity documents; a random value can coincidentally match a real, issued number, and DevTools accepts no liability for how generated data is used.
How is the Unified Business Number check performed?
Digits are weighted 1, 2, 1, 2, 1, 2, 4 and 1, and the digits of every product are summed. The Ministry of Finance accepts the number when the total is divisible by 5.
Why is the rule divisible by 5 instead of 10?
The rule was relaxed from divisible by 10 in 2023 to create more available numbers. Legacy validators may still expect the older rule, so generated values satisfy both.
What is special about a seventh digit of 7?
When the seventh digit is 7, the checksum plus one may be used instead, and the validator accepts that variant.
Does validation confirm the business is registered?
No. It confirms the weighted sum only, with no Ministry of Finance lookup.
References & standards
Related tools
Taiwan National ID Generator
Generate synthetic Taiwanese national ID numbers with a household-registration letter and MOI check digit, and validate pasted values.
VAT Number Generator
Generate VAT numbers for EU, UK, Switzerland, Norway and global tax integration testing.
Tax Number Generator
Generate valid tax identification numbers for testing (TR, US, SG, etc.)
National Identity Generator
Generate and validate national ID numbers for testing (TR, US, DE, UK, SA, AE, QA, KW, CA, ES, BR, FR, IT, NL, SE, NO, EG, SG)
Tax ID Validator
Auto-detect and validate VAT, EIN, TIN and GST identifiers with batch checksum reporting.