Skip to content
Toova
All Tools

US EIN Generator for Software Testing

Private by design — runs entirely in your browser

An EIN (Employer Identification Number) is the 9-digit US federal tax ID assigned by the IRS to businesses, estates, and trusts. Unlike many other identifiers it has no check digit — validity is determined by the first 2 digits (the IRS prefix) being one of the 84 ranges the IRS actually issues. Toova generates EINs with valid prefixes, perfect for filling out test fixtures and exercising form validators.

What it is

An EIN looks like 12-3456789 — two digits, a hyphen, and seven more digits. The 9-digit number is unique per business. The IRS issues new EINs from a fixed pool of 2-digit prefixes that correspond to the issuing campus or processing centre. Out of the 100 possible 2-digit prefixes (00-99), about 16 are never assigned (00, 17, 18, 19, 28, 29, 49, 69, 70, 78, 79, 89 among them) — those are reserved or retired ranges.

How the algorithm works

There is no check-digit math to verify an EIN's validity; the only client-side test is whether the prefix is in the IRS-issued list. Toova draws the prefix at random from the 84 valid ranges, then appends 7 random digits. The output passes any front-end validator that checks for the right format (XX-XXXXXXX) and a valid prefix. Whether the EIN is actually registered with the IRS can only be confirmed by an IRS lookup — Toova's outputs are not registered.

Frequently Asked Questions

Are these EINs real?
No. They have valid IRS prefixes and the correct 9-digit format, but are not assigned to any business. They will pass front-end format validators and fail an actual IRS lookup.
Why does my form validator accept these?
Because most validators only check the format (XX-XXXXXXX, 9 digits) and the prefix. Toova's generator emits both correctly. A real registry check would require the IRS database, which is not publicly queryable.
Can I use a generated EIN to file taxes?
No. Using a generated EIN on real tax filings is fraud. Use generated EINs only for tests, fixtures, demo screens, and seeded databases.
Why 84 prefixes and not 100?
Because the IRS does not issue every 2-digit prefix. The unissued ranges include 00, 17, 18, 19, 28, 29, 49, 69, 70, 78, 79, 89 and a few others. Toova's prefix list mirrors the IRS-issued set.
Does Toova store or log my generated EINs?
No. All generation runs in your browser via crypto.getRandomValues. There are no outbound requests during generation.