CNPJ Generator & Validator

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

Generator Settings

Quantity

Real-Time Validator

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

Format
Example
EIN (formatted)
61-4839027
EIN (raw)
614839027
CNPJ (Brazil, numeric)
45.892.112/0001-90
Invalid — prefix not assigned by the IRS
00-1234567

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

EIN (USA)
CNPJ (Brazil)
SIREN (France)
Partita IVA (Italy)
Check digit / checksum
no — prefix range only
yes — Modulus 11
yes — Luhn
yes
Parent/branch hierarchy
no
yes (matrix + filial)
yes (SIRET)
no
Alphanumeric format
no
from 2026
no
no
Generated in this tool
yes
yes
yes
yes

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

Related Tools