EIN Generator & Validator — CNPJ, CIF, Partita IVA, SIREN
Generate and validate EIN (USA), CNPJ (Brazil), CIF (Spain), Partita IVA (Italy) and SIREN/SIRET (France) for dev testing. Free, browser-only, no signup.
Updated May 2026
Quantity
Validation Report
Waiting for input…
How to Generate an EIN
A valid, IRS-formatted EIN in three steps
1. Pick a country
EIN (USA) is selected by default — or switch to CNPJ (Brazil), NIPC (Portugal), CIF (Spain), Partita IVA (Italy), USt-IdNr (Germany), or SIREN (France).
2. Set the format
Toggle formatted output (XX-XXXXXXX) or raw digits. For CNPJ, choose numeric or the 2026 alphanumeric format, and matrix or branch hierarchy.
3. Generate and copy
The ID comes with a matching company name, industry code, address, and contact person — copy the full profile with one click.
What this tool does
IRS-valid prefixes, real check-digit algorithms, ready for QA
IRS-valid EIN prefixes
Every EIN uses one of the roughly 90 two-digit prefixes the IRS actually assigns, mapped to the real campus that issued it — Kansas City, Ogden, Cincinnati and more.
Full fictitious company profile
Company name, industry code (NAICS, CNAE, ATECO, NAF…), street address and an authorized contact — everything a form asks for, none of it real.
Real-time format validator
Paste any EIN, CNPJ, CIF, Partita IVA, USt-IdNr or SIREN/SIRET and see the check-digit breakdown or prefix lookup instantly.
Copy-paste validation code
Grab the check-digit algorithm as a ready-to-use snippet in several languages instead of reimplementing it from scratch.
7 international tax ID formats
EIN (USA), CNPJ (Brazil), NIPC (Portugal), CIF (Spain), Partita IVA (Italy), USt-IdNr (Germany) and SIREN/SIRET (France) in one tool.
Runs 100% in your browser
Nothing is transmitted or logged — generation and validation happen entirely on your device.
EIN examples
When you'll reach for this
The most common scenarios among people who use this tool
Fill test forms and API mocks
Populate signup flows, onboarding forms and API fixtures with realistic-looking EINs or CNPJs without touching a single real business record.
QA for tax and payroll systems
Test EIN validation logic, W-9 intake, or vendor onboarding against a spread of valid IRS prefixes plus a deliberately invalid one.
Stay compliant while testing
Generated IDs are correctly formatted but unregistered — no real company's EIN, CNPJ or SIREN ever has to touch your test environment.
Get ahead of Brazil's 2026 alphanumeric CNPJ
If your stack accepts CNPJ input anywhere, generate the new letter-based format now and confirm your validators handle it before the July 2026 rollout.
Build multi-country demo data
Need sample companies from seven countries for a demo or design mockup? Switch tabs and generate a consistent EIN, CNPJ, CIF or SIREN persona in seconds.
Common mistakes
Assuming the EIN has a check-digit checksum
It doesn't. The IRS assigns EINs from a fixed list of prefixes with no mathematical checksum, so format validation can only confirm the prefix is one the IRS uses — it can't prove the full number was actually issued. CNPJ and SIREN do carry a real checksum; don't apply the same validation logic to an EIN.
Using a generated ID on a real form
These numbers are unregistered by design. Submitting one to a bank, payroll provider, or tax authority is a compliance problem — keep generated IDs in test and staging environments only.
Confusing EIN with SSN
An EIN identifies a business; an SSN identifies a person. Both are 9 digits, which is why the formats get mixed up, but the two use different assignment rules and different systems entirely.
Why use this tool
Most EIN generators just spit out nine random digits. This one only uses prefixes the IRS actually assigns, maps each one to its real processing campus, and attaches a full fictitious company profile — name, industry code, address, contact — so the test data looks like it came from an actual form submission.
Everything runs in your browser. No EIN, CNPJ, or company data is ever transmitted or stored anywhere, which matters when your test fixtures need to stay clear of PII and real business records.
EIN and its international equivalents
Same idea, different algorithm per country
Frequently asked questions
No. The IRS assigns EINs from a fixed set of two-digit prefixes with no mathematical checksum attached, so format validation can only confirm the prefix is one the IRS uses — it can't confirm the whole number was actually issued. CNPJ (Modulus 11) and SIREN (Luhn) do carry a real checksum, which is why this tool validates those two differently from EIN.
References
Official IRS overview of what an EIN is, who needs one, and how it's assigned.
Background on EIN structure, prefix history, and how it differs from SSN and ITIN.
Generate and validate SSN, CPF, NIF, DNI, Codice Fiscale and NIR for development testing.
Related Tools
- SSN Generator & Validator Developer Generate and validate SSN (USA), CPF (Brazil), NIF (Portugal), DNI (Spain), Codice Fiscale (Italy), Steuer-IdNr (Germany) and NIR (France) for dev testing.
- Email Syntax Validator Developer Validate any email address format instantly against RFC 5322 rules — local part, @ symbol, domain, and TLD. Free, browser-only, private.
- JSON Formatter & Validator Developer Free online JSON formatter & validator — format, validate, minify, and export JSON to CSV. Tree view, graph view, and syntax highlighting. No install needed.
- JSON Schema Validator Developer Free online JSON Schema Validator — validate JSON data against any schema (Draft-07, 2019-09, 2020-12) instantly in your browser. No install, no sign-up.
- XML Formatter & Beautifier Developer Free XML formatter, validator, and beautifier online — format, minify, tree view, XPath query, XML diff, and convert to JSON/CSV. 100% client-side, no signup.