ID and tax number generators

Valid test values for 37 national ID, tax and company number formats in 24 countries. Each follows the published structure and check-digit rule, and each tool includes a validator. Use them to test forms, imports and database constraints.

Argentina

Australia

Belgium

Brazil

Canada

Chile

China

Finland

France

Germany

India

Ireland

Italy

Japan

Mexico

Netherlands

Poland

Portugal

South Africa

Spain

Sweden

Turkey

United Kingdom

United States

How these numbers are made

Every format has rules an application can check without asking the issuing authority: a length, allowed letters, an encoded date of birth or region, and usually a check digit (Luhn, mod 11, mod 97, mod 23, Verhoeff or ISO 7064). The generators build random values that satisfy those rules, and the same code checks numbers you paste in.

Where an authority reserves a range that is never issued, the tool uses it by default: the US Social Security Administration reserves 987-65-4320 to 987-65-4329 for advertising, and HMRC never allocates National Insurance numbers with the prefix QQ. Elsewhere no such range exists, so a random valid number may coincide with a real one. It is still not taken from any register.

In the fake name generator and the test data generator, numbers that encode a date of birth, sex or region are built from the same profile. A Mexican CURP carries the person’s initials, birth date, sex and state, and a Brazilian CPF the fiscal region of the address.

Acceptable use

These values are for testing software you build or are allowed to test. Using an ID or tax number that is not yours on a real application, account, tax return or bank form is fraud in most countries, whether or not the number has been issued. See the acceptable use terms.

Not included

Passport and driving-licence numbers, and live bank or card numbers, are left out. For payments, the fake name generator shows card numbers that payment providers publish for test mode; live systems decline them.