Random EIN generator
A US Employer Identification Number (EIN) is a nine-digit identifier in the form XX-XXXXXXX. This random EIN generator builds placeholder EINs for software tests, demos, and sample data. Each prefix is taken from the published IRS campus prefix list, so numbers that would be rejected for an invalid prefix are not produced. There is no EIN checksum. Every value is passed through the validator on this page before it is shown. These numbers are not issued by the IRS, they are not a lookup of any business, and they must not be used in a production tax, banking, or employment system.
See all supported countries
Pick a country below to jump to the generator with that locale selected. Types with a published checksum are validated against that algorithm. Types without one are clearly labeled as format checks.
How to use this tool
-
Choose a country and type
Select a country, then the ID you need, such as a US EIN, a French SIREN, or a Brazilian CPF.
-
Generate or paste
Generate one ID or a list, or switch to Validate and paste a value. Use Load a random tax ID to fill a passing example.
-
Read the result
A valid ID shows a green confirmation with the official name of that format. An invalid ID explains the reason, for example a bad IRS EIN prefix or a failed checksum.
-
Copy or export
Copy a single value, copy the list, or download CSV or JSON. Generated values have already passed the validator.
Frequently Asked Questions
Are generated tax IDs real?
No. They are format-valid placeholders for tests, demos, and sample data. They are not issued by the IRS, HMRC, or any other tax authority. Using them in a live tax, banking, or employment filing is not allowed, and fraud is illegal.
How does the random EIN generator work?
A US Employer Identification Number is nine digits in the form XX-XXXXXXX. This tool picks a prefix from the published IRS campus prefix list, then fills the remaining seven digits at random. There is no EIN checksum. Every generated EIN is checked by the validator on this page before it is shown.
Is this an EIN lookup?
No. OnlinePGP cannot tell you whether the IRS has issued a number, who it belongs to, or whether a business is in good standing. The validator only checks format and, where a public algorithm exists, the checksum.
Which numbers have a real checksum?
Many do. Examples include Canadian SIN (Luhn), Australian TFN and ABN, French SIREN, SIRET, NIR and VAT, German IdNr and VAT (ISO 7064 MOD 11,10), Italian codice fiscale and P.IVA, Spanish NIF and NIE, Dutch BSN, Belgian national numbers, Polish PESEL and NIP, Portuguese NIF, Croatian OIB, Brazilian CPF and CNPJ, Swedish personnummer, Norwegian fodselsnummer, Finnish hetu, Swiss UID, and New Zealand IRD numbers. Some IDs, such as a UK UTR or an Indian PAN, are format checks only because a public checksum is not used or not published.
What about US Social Security Numbers?
Generated SSNs use area numbers 900-999 with a group that is not an ITIN group, so they stay in an unissued range and are clearly test data. The validator will also explain if a 9xx number is actually in ITIN format.
Does a value leave my browser?
No. Generation and validation run locally in JavaScript. Nothing is sent to OnlinePGP or to a tax authority.