DevTools Logo

Taiwan UBN Generator

Taiwan UBN Generator

Generate 8-digit Taiwanese Unified Business Numbers (統一編號) that pass the Ministry of Finance check — synthetic test data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates 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).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal. DevTools accepts no liability for how generated data is used.

    Examples

    Generated UBN

    Input
    UBN · Generate
    Output
    00501503

    Weighted digit sum 10, so the value satisfies both the mod-5 and mod-10 rules.

    Validate a pasted UBN

    Input
    00501503
    Output
    Valid — weighted digit sum 10 is divisible by 5

    The validator shows the sum so the result is easy to audit.

    Failing sum

    Input
    00501502
    Output
    Invalid — weighted digit sum is 9, which is not divisible by 5

    A 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

    1. Generate one UBN

      Click Generate to create an 8-digit number that passes the current check and the older mod-10 rule.

    2. Copy the value

      Copy it to a company fixture or download it as a .txt file.

    3. 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

    PartRule
    Length8 digits
    Weights1, 2, 1, 2, 1, 2, 4, 1
    SumDigits of every weighted product are added individually
    Current ruleSum divisible by 5 (relaxed from 10 in 2023)
    Seventh-digit 7Sum + 1 divisible by 5 is also accepted
    Generated valuesAlso 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