EIN Validator
Finance & Global IDsValidate US Employer Identification Numbers (EIN) for correct XX-XXXXXXX format instantly. Checks structure and prefix — free, client-side, nothing stored.
Reviewed by the thecalcu.com team · Last updated July 25, 2026
What is a EIN?
An EIN Validator checks whether a US Employer Identification Number is shaped correctly, nine digits, split as a 2-digit prefix and a 7-digit sequence, written XX-XXXXXXX. The IRS assigns EINs to identify businesses, trusts, and other legal entities for federal tax purposes, and getting the structure wrong on a form is one of the more common (and easily preventable) reasons a 1099 filing or vendor record gets kicked back.
The check runs in three steps: confirm the input is exactly 9 digits after stripping any hyphens or spaces, confirm the first two digits match a prefix the IRS has actually assigned (not every two-digit code from 00–99 is in use), and format the result as XX-XXXXXXX. This is a structural check, not a lookup, it can't tell you whether a specific EIN belongs to a real, currently active business, only whether the number is shaped the way a real one would be.
Everything runs client-side. The EIN you type never leaves your browser or touches a server, which matters given that it's a sensitive business identifier.
Common Reasons This Validator Fails
Wrong digit count. The most frequent failure by far, 8 or 10 digits instead of 9, usually from a copy-paste that dropped or duplicated a character.
An unassigned prefix. Codes like 00, 07–09, 17–19, 28, and 49 were never issued as IRS campus codes. If you see one of these fail, double-check the source document, it's often a sign the number was transcribed wrong, not that the format rule is being too strict.
An SSN entered into the EIN field. Both are 9 digits, but an SSN is grouped 3-2-4 (XXX-XX-XXXX) while an EIN is grouped 2-7 (XX-XXXXXXX). Someone filling out a form for a sole proprietorship will sometimes paste their SSN where an EIN was expected, the digit count matches, so it's an easy mistake to make and an easy one for this tool to catch.
Assuming validity means the business is real. A structurally valid EIN, right length, right prefix, isn't proof the number is actually registered or active. That distinction matters if you're using this as a first-pass filter before a more authoritative check, like requesting a W-9 directly from the vendor.
Who Should Use This Validator?
Bookkeepers and accountants entering vendor EINs ahead of 1099-NEC season, where a malformed number means a rejected e-file later.
HR and contractor-onboarding platforms collecting W-9 information from US vendors and freelancers, where catching a bad EIN at data entry beats discovering it during a payroll run.
Developers building payroll, invoicing, or tax-compliance tools who want input-level validation before an EIN hits a database, pair with the EIN Formatter to normalize raw digit strings before validating them, or with the SSN Validator if the same form also collects personal tax IDs.
Show formula & methodology ↓Show less ↑
Formula & Methodology
The check applies these rules in order: 1. Strip everything except digits from the input. 2. Confirm exactly 9 digits remain. 3. Confirm the first two digits are a valid IRS campus prefix, specifically not one of: 00, 07–09, 17–19, 28, 49, 69, 70, 78, 79, 89, 96, 97. 4. Format the result as XX-XXXXXXX. There's no checksum digit involved, unlike some ID formats (IBAN, credit card numbers), an EIN has no built-in mathematical check digit, so structure and prefix are the only two things a format validator can verify.
Quick Reference
| EIN | Valid? | Why |
|---|---|---|
12-3456789 |
✓ | Correct length, valid prefix |
123456789 |
✓ | Hyphen is optional |
00-1234567 |
✗ | Prefix 00 was never assigned |
12-345678 |
✗ | Only 8 digits |
123-45-6789 |
✗ | SSN grouping, not EIN grouping |
For related US identifiers, see the SSN Validator for personal tax IDs or the VAT Number Validator for EU/UK business tax numbers. If you're working with India's equivalent business identifier instead, the PAN Number Validator checks that format.
Frequently Asked Questions