Generator · US data
US Employer Identification Number
Endpoint GET /v1/us/ein
What it covers
Returns a synthetic US Employer Identification Number — the federal taxpayer number the IRS issues to businesses, formatted `NN-NNNNNNN`. The EIN carries **no checksum**: its only structural rule is that the two-digit prefix must be one the IRS actually issues, so `invalid=true` violates that prefix (or the nine-digit mask) instead. Since 2001 the prefix identifies the assigning campus or the online SS-4 programme, **not** the business’s location. Pin it with `prefix`; an unissued prefix is rejected with a 400.
Parameters
| Parameter | Type | Description |
|---|---|---|
| count | integer1–10000 | Number of records to return, 1–10000. Omitted returns a single record; set it for a batch. Costs 1 token plus a tenth per record. |
| edge | boolean | Restrict output to valid edge cases from the rare corners of the domain. |
| extreme | boolean | Return a correct value wrapped in a hostile encoding (untrimmed whitespace, invisible/zero-width characters, BOM, or bidi/combining marks). Homoglyphs are excluded so the value stays machine-parseable; it still validates after normalisation. |
| format | "plain" | "with-hyphen" | Rendering: `with-hyphen` (default, `12-3456789`) or `plain` (9 bare digits). |
| invalid | boolean | Return a deliberately invalid value that fails validation, for testing rejection paths. |
| prefix | stringpattern ^\d{2}$ | Pin the two-digit IRS campus prefix, e.g. `20` (Internet) or `04` (Brookhaven). |
| seed | integer | Integer seed for reproducible output: the same seed always yields the same record. |
Response fields
| Field | Type | Description |
|---|---|---|
| value | string | The EIN rendered per `format` (hyphenated by default). |
| digits | string | The canonical nine digits, unformatted. |
| prefix | string | The two-digit IRS campus prefix. |
| serialNumber | string | The seven-digit serial following the prefix. |
| campus | string | The IRS campus or programme issuing this prefix, e.g. `Ogden`, `Internet`. |
Other generators for United States
American company nameAmerican email addressAmerican person nameAmerican product or service offeringUS ABA routing transit numberUS bank accountUS companyUS personUS Social Security NumberUS vehicle registration plate
See all generators for United States →The same kind of identifier elsewhere
Austrian data · Austrian FirmenbuchnummerAustrian data · Austrian SteuernummerAustrian data · Austrian UIDBelgian data · Belgian OndernemingsnummerBulgarian data · Bulgarian EIKCanadian data · Canadian Business NumberCzech data · Czech IČODanish data · Danish CVRDutch data · Dutch btw-idDutch data · Dutch KvK numberDutch data · Dutch RSINEstonian data · Estonian KMKREstonian data · Estonian registrikoodFrench data · French SIRENGerman data · German HandelsregisternummerGerman data · German Personalausweis numberGerman data · German USt-IdNrGerman data · German Wirtschafts-IdNrHungarian data · Hungarian adószámHungarian data · Hungarian cégjegyzékszámIrish data · Irish CRO numberIrish data · Irish VAT numberItalian data · Italian Partita IVALatvian data · Latvian registracijas numursLithuanian data · Lithuanian įmonės kodasLithuanian data · Lithuanian PVM (VAT) numberLuxembourg data · Luxembourg TVAMaltese data · Maltese identity card numberMaltese data · Maltese VAT numberPolish data · Polish driving licence numberPolish data · Polish ID card numberPolish data · Polish KRS numberPolish data · Polish land and mortgage register numberPolish data · Polish NIPPolish data · Polish passport numberPolish data · Polish REGONPortuguese data · Portuguese Cartão de Cidadão numberRomanian data · Romanian CUI/CIFSlovak data · Slovak IČ DPHSlovak data · Slovak IČOSpanish data · Spanish CIFSwedish data · Swedish organisationsnummer
Try it