Test documents

Generate and validate test IDs, IBANs and cards by country.

loading Test documents
About this tool

What are test documents?

Test documents are ID numbers, tax numbers, bank identifiers and payment-card numbers that have the right format and a correct check digit but belong to nobody. Developers and QA testers need them every time an app has a field that validates a national document: a sign-up form for Brazil, a KYC flow for Argentina, an invoice screen for Chile, a payment form for cards. Using real people's numbers in a staging database is a privacy problem; typing 111111111 fails the validation. A generator of valid fake numbers solves both.

This tool covers more than 60 document types by country, including the United States (SSN), the United Kingdom (NINO), Italy (Codice Fiscale), Mexico (CURP and RFC), India (PAN and GSTIN), Poland (PESEL), Turkey (T.C. Kimlik), Russia (INN and SNILS), Indonesia (NIK), Norway (fødselsnummer), Belgium (national number) and the VAT number of each of the 27 EU member states. The first group is: Brazil (CPF, CNPJ and the new alphanumeric CNPJ), Argentina (CUIT/CUIL), Chile (RUT), Mexico (CLABE), Colombia (NIT), Spain (DNI and NIE), Portugal (NIF), France (SIREN and SIRET), the Netherlands (BSN), the United States (ABA routing number), Canada (SIN), India (Aadhaar), China (18-digit resident ID), Japan (My Number), plus IBAN bank accounts and Visa, Mastercard and American Express test cards. You can generate 1, 5, 10 or 50 numbers, with or without the usual mask (dots, dashes, spaces), and you can paste values to validate them, one per line, with the reason shown when a number is invalid. It can also recognise which document a pasted number is.

Everything is calculated in your browser. The numbers are for tests only: they are not registered with any authority, and using a made-up number to deceive a company, to open an account or to bypass a check is illegal in most countries.

How to generate and validate test documents

  1. Pick the country and the document type.
  2. In Generate, choose how many (1, 5, 10 or 50) and whether you want the mask. Press Generate again for a new set.
  3. Copy one value, or use Copy all to take the list, one per line.
  4. In Validate, paste values one per line. The tool shows how many of the total are valid and, for each invalid line, why: wrong length, all digits equal, wrong check digit (with the expected one) or failed checksum.
  5. If you paste a value and are not sure which document it is, the tool can identify it.

Examples

Validating a CPF

111.444.777-35 is valid. 111.444.777-36 fails with "expected check digit: 35", and 111.111.111-11 fails because all digits are equal. For details on CPF and CNPJ see the CPF generator, the CPF validator and the CNPJ generator.

Other countries

The values below are accepted by the tool and show the format of each document:

DocumentExampleCheck
CNPJ (BR)11.222.333/0001-81mod 11
CUIT (AR)20-12345678-6mod 11
RUT (CL)12.345.678-5mod 11, digit 0-9 or K
DNI (ES)12345678Zletter from the number mod 23
NIE (ES)X1234567Lletter from the number mod 23
NIF (PT)123456789mod 11
SIREN (FR)732 829 320Luhn
BSN (NL)11122233311-test
ABA (US)011000015weights 3-7-1
SIN (CA)046 454 286Luhn
CLABE (MX)002010077777777771weights 3-7-1
SSN (US)536-90-4399area, group and serial rules, no check digit
NINO (GB)JG 10 37 59 Aprefix rules, no check digit
Codice Fiscale (IT)RSSMRA85T10A562Scontrol letter, omocodia letters accepted
CURP (MX)HEGG560427MVZRRL04weights 18 down to 2, mod 10
RFC (MX)GODE561231GR8mod 11 over 12 characters
PAN (IN)ACUPA7085Rstructure only (last letter not published)
GSTIN (IN)27AAPFU0939F1ZVbase-36 check character
PESEL (PL)44051401359weights 1-3-7-9, mod 10
T.C. Kimlik (TR)17291716060two check digits
INN (RU)7707083893weights, mod 11
SNILS (RU)112-233-445 95weights 9 to 1, mod 101
NIK (ID)3171011708450001structure and date only
Fødselsnummer (NO)15108695088two mod 11 check digits
National number (BE)85.07.30-033.2897 minus mod 97
VAT (DE)DE136695976ISO 7064 mod 11,10
VAT (FR)FR23334175221key from the SIREN, mod 97
VAT (IT)IT00743110157Luhn

Payment test cards

4111 1111 1111 1111 is the widely documented Visa test number and passes the Luhn check. 4111 1111 1111 1112 fails ("Luhn check failed"). Card brands and payment gateways publish their own test numbers for sandboxes; use those for real integrations.

An IBAN

DE89 3704 0044 0532 0130 00 is a valid German IBAN. For a full breakdown use the IBAN validator.

Common mistakes

  • Using test numbers in production. They are not real; a production system that verifies the document with the authority will reject them.
  • Using them to deceive. Opening accounts, signing up or passing identity checks with invented documents is fraud.
  • Trusting a valid check digit as proof of identity. The check digit only detects typos; it does not show that the number exists.
  • Mixing the masked and the plain format. Some fields accept only digits; copy the version without mask for those.
  • Using a real card number for tests. Use brand-provided test cards.
  • Assuming one rule for all countries. Each document has its own length and algorithm; pick the right country and document first.

Frequently asked questions

Are these numbers real?

No. They have a valid format and check digit but are not registered to anyone.

Can I use them to test a payment?

For validating a card field, yes. For a payment flow, use the sandbox cards from your payment provider.

Why do all digits equal fail?

Numbers such as 111.111.111-11 pass the arithmetic but are rejected by the official rules, so the tool rejects them too.

What is a check digit?

One or two digits calculated from the others, used to catch typing mistakes.

What else can I generate for tests?

Unique IDs with the UUID generator, PIX codes with the PIX generator and phone numbers can be checked with the phone number parser.

Report a problem