Skip to content
faker.tools
All 79

Plate VII · Healthcare, Legal & Enterprise Synthetic Data

Tax ID & EIN Generator

US EINs, plus UK, German, French and Spanish VAT numbers, Canadian BNs and Australian ABNs with valid check digits.

#Tax IDJurisdictionEntity
184-8797247USOnyxlab Ltd.
288-0377288USEmber & Halcyon Corp.
320-2485451USEmberworks GmbH
488-4197118USRidgespan LLC
526-7872047USTandemwave GmbH
645-6290193USAnvilbridge SAS
784-3756012USTesserafield PLC
882-4606228USHalcyon & Orbit AG
988-0894483USKestrelhouse Ltd.
1027-0230608USWayfarer Craft B.V.
10 rows · 661 BGenerated in your browser · Tax ID & EIN Generator

A test tax ID is a business identifier with the correct format and check digit for its country that is not registered to any business. This generator produces US Employer Identification Numbers and six checksum-valid formats — UK VAT, German USt-IdNr., French TVA, Spanish CIF, Canadian Business Numbers and Australian ABNs — each attached to a fictional company, for testing invoicing, onboarding, KYB and tax-calculation code.

How to use it

  1. Pick a jurisdiction.
  2. Toggle separators to test both the printed form (GB 566 7862 84, 58 566 786 262) and the compact form your database stores.
  3. Attach a company name and registration date if your form or fixture needs them.
  4. Export the batch as JSON, CSV or SQL. The same seed regenerates the same IDs.

What you can control

  • United States — EIN: nine digits with a real IRS-assigned prefix (20, 26, 27, 45–47, 81–88), formatted XX-XXXXXXX.
  • United Kingdom — VAT: nine digits whose weighted mod-97 check passes, prefixed GB.
  • Germany — USt-IdNr.: DE plus nine digits, the last computed with ISO 7064 MOD 11,10.
  • France — TVA: FR, a two-digit key, and a Luhn-valid nine-digit SIREN.
  • Spain — CIF: organisation letter, seven digits and a control digit or letter, depending on the entity type.
  • Canada — Business Number: a Luhn-valid nine-digit BN with an RT0001 program account.
  • Australia — ABN: eleven digits satisfying the ABR's weighted mod-89 rule.

How the check digits differ

Each country solved the same problem — catching typos before a lookup — in a different way:

Format Algorithm
UK VAT First seven digits × weights 8, 7, 6, 5, 4, 3, 2; the last two digits bring the sum to a multiple of 97
German USt-IdNr. ISO 7064 MOD 11,10: a running product over the first eight digits
French TVA Key = (12 + 3 × (SIREN mod 97)) mod 97, and the SIREN itself is Luhn-valid
Spanish CIF Luhn-like sum over seven digits; the control is a digit, a letter from JABCDEFGHI, or either, depending on the entity letter
Canadian BN Luhn over the nine-digit root
Australian ABN Subtract 1 from the first digit, weight by 10, 1, 3, 5 … 19, and require a sum divisible by 89

To check them in a test, python-stdnum covers all six: stdnum.gb.vat, stdnum.de.vat, stdnum.fr.tva, stdnum.es.cif, stdnum.ca.bn and stdnum.au.abn, each with an is_valid() function.

Testing ideas

  • Country prefix handling. Users type VAT numbers with and without the GB or DE prefix, and with spaces. Generate both forms and check your field accepts and normalises them.
  • Reverse-charge logic. EU B2B invoices change tax treatment when the buyer has a valid VAT number in another member state. Use a French and a German number to exercise both branches.
  • Lookup failure. Your code should treat "valid format, not registered" differently from "invalid format". These IDs give you the first case on demand.
  • Display and masking. Check invoice PDFs and emails render the separators correctly.

What this is not

A correct check digit is not a registration. None of these numbers belongs to a company, and a VIES, HMRC or ABR lookup will say so. Use them in test environments only, and see Check digits that test data must satisfy for more on why the digit matters.

Questions

Will a VAT number validator accept these?

The format and check digit, yes. Every UK, German, French, Spanish, Canadian and Australian number is checksum-valid, and a sample of 1,500 per country passed python-stdnum. A live lookup such as the EU's VIES service or the UK HMRC API will report them as not registered, because they are not.

Do US EINs have a check digit?

No. An EIN is nine digits, and the only structural rule is the two-digit prefix, which the IRS assigns from a known list of campus and online prefixes. The generator uses real, in-use prefixes so EIN format validators accept the output.

Can I put a generated tax ID on an invoice?

Only on test invoices that never leave your system. Putting a fabricated tax registration on a real invoice, form or filing misrepresents your business and is unlawful in essentially every jurisdiction.

What is the difference between a CIF and a NIF in Spain?

NIF is the umbrella term for a Spanish tax identification number. Companies historically used a CIF: an organisation-type letter, seven digits and a control character. The generator produces that company format, with the control character computed.

Why do some Australian ABNs start with 99?

The first two digits of an ABN are its check digits, issued in the range 11 to 99. When the weighted sum would otherwise need 10, the ABN is written with 99 instead, which is the form the Australian Business Register uses.

Next in Enterprise

All 10 →