EIN Generator

Employer Identification Numbers with a real IRS campus prefix, for testing forms and databases.

What the two-digit prefix means

An EIN is nine digits written XX-XXXXXXX. The first two are the campus prefix: the IRS office or system that assigned the number. The remaining seven are sequential.

The prefix is the only part a form can check without calling the IRS. If the first two digits are not on the published list, the number was never assigned. Everything else is unverifiable offline, because an EIN has no check digit — same as an SSN, and unlike most national company identifiers.

Prefixes moved online, and old ones still count

The prefix used to mean a physical location: 06 was Connecticut, 95 was California. That stopped in 2001, when the IRS moved assignment to campuses and internet applications. Prefixes like 20, 26, 27, 45, 46, 47, 81 and 82 come from online applications and map to no state at all.

Numbers issued under the old scheme stay valid forever, so a validator has to accept both. This generator draws from the full published list rather than guessing at a range.

An EIN is public, and that matters for test data

Unlike an SSN, an EIN is not secret. Nonprofits publish theirs on Form 990, and the IRS exempt organization database is searchable. That makes it tempting to grab a real one for testing.

Do not. A real EIN in a test database is real company data in a system that was never designed to hold it, and it will eventually leak into a log, a fixture, or a screenshot. A generated number costs nothing and carries no such risk.

Frequently asked questions