Sheet B-14 · Article

PII test data: sample SSNs, ITINs and MBIs that are safe to use

Safe PII test data comes from ranges the issuing agencies never use. What SSA, the IRS and CMS publish on SSN, ITIN and MBI formats, and how to test with them.

Published16 Nov 2026
ByThe VellumSoft team
Reading time6 min
Sources10 cited

Safe PII test data comes from the ranges the issuing agencies say they never use. For a sample SSN, the Social Security Administration never assigned numbers that begin with 000 or 666, have 00 in the middle or end in 00001. The IRS and CMS pages cited here give no such range for ITINs or Medicare numbers23. Random look-alikes fail both ways: some will not pass a scanner's checks, and others belong to real people.

Why random numbers are the wrong test data

A made-up number can go wrong in two directions.

It can be too fake. Identifiers such as card numbers carry a check digit, and a scanner that tests the digit will ignore random strings. VellumSoft's own checksum-based detectors work this way. Tier 1 values must pass their checksum, so random digits will not be reported. A test file of random digits then proves nothing.

Or it can be too real. Since June 25, 2011, SSA has assigned all SSNs randomly9. Nine digits typed at random in the right shape may be somebody's number. Once such a value sits in a test file with a plausible name beside it, the file has to be handled like the real thing. NIST is plain about that: "If PII is used in the test environment, it is required to be protected at the same level that it is protected in the production environment"5.

NIST also warns that "Randomly generating fake data in place of PII to test systems is often ineffective", because test data has to keep the properties the system checks for5. So good test data is built from the rules, not from a random number generator.

Sample SSNs: what SSA says it never assigned

SSA's operations manual defines an invalid SSN as "one that we never assigned" and lists how to recognize one1. In the patterns below, N stands for any digit. These are patterns, not numbers.

Pattern Why it cannot be a real SSN
000-NN-NNNN The first three digits are 0001
666-NN-NNNN The first three digits are 6661
NNN-00-NNNN The middle two digits are 001
NNN-NN-0000 The last four digits are 00001

SSA's list has one more entry, the 900 series1. Leave it out of SSN test data. The IRS issues its own nine-digit numbers that begin with 9, so a value there may be a real ITIN2.

There is a catch that most "fake SSN" lists skip. A careful detector applies the same SSA rules, so it should ignore every row in that table. Never-assigned numbers are the right test of whether a tool rejects impossible values, and the wrong test of whether it finds valid ones. For a tool that screens out invalid ranges, a positive test needs a number in a valid range, and no source reviewed for this page documents an SSA range set aside for that.

ITIN sample numbers: what the IRS says about the format

The Internal Revenue Manual describes the ITIN as a nine-digit number that "will be in the format of an SSN" and begins with the number 92. It then narrows the fourth and fifth digits to four ranges2:

  • 50 to 652
  • 70 to 882
  • 90 to 922
  • 94 to 992.

The manual adds that 89 and 93 are not used for ITINs and are reserved for other programs2. Microsoft's published ITIN detector uses the same four ranges4.

That gives two kinds of test value, written here as patterns only:

Pattern What it tests
9NN-7N-NNNN The shape of a valid ITIN, with fourth and fifth digits inside an IRS range2
9NN-4N-NNNN A number that begins with 9 and falls outside the four ITIN ranges, which a detector should not call an ITIN2

Both patterns need care. The part of the manual that sets out the format gives no sample ITIN, and any value that fits the valid ranges could have been issued2. The second pattern is not a free range either: the manual lists other IRS numbers that begin with 9, with fourth and fifth digits that include 49, 66, 89 and 932. Build such values only inside a closed test folder, never post them, and delete them when the test is done.

Medicare MBI test data: what CMS says about the format

CMS publishes the Medicare Beneficiary Identifier format in full3:

  • An MBI has 11 characters3.
  • It uses "numbers 0-9 and all letters from A to Z, except for S, L, O, I, B, and Z"3.
  • The 2nd, 5th, 8th and 9th characters are always letters3.
  • Characters 1, 4, 7, 10 and 11 are always numbers3.
  • The 3rd and 6th characters can be either3.
  • Dashes are not part of the MBI and are not entered into computer systems3.

CMS also says "Each MBI is randomly generated" and has no hidden meaning3. That is the reason to be wary of bulk downloads. PII Tools offers a file of 1,000 fake MBI examples8. A generator that follows the CMS format can, by chance, produce a value CMS has issued, and nothing on that page says otherwise8.

The safest positive example is the one CMS prints in its own format document, which is a published illustration3. The safest negative test is easy to build from the rules: any 11-character value that contains one of the six excluded letters cannot be an MBI3.

Card numbers, driver's licences and SINs

Card numbers have a wrinkle of their own. Some card numbers are reserved for testing, and a detector may be built to skip them. Microsoft says its card detector "doesn't flag reserved credit card numbers, such as the ones financial institutions use for testing"6. A silent result on a well-known test card can therefore be correct behaviour.

PII Tools offers a download of 1,000 sample card numbers "to test whether your website or software can accurately recognize" them7. The page does not say whether those numbers pass the card check digit or come from a reserved range7. Check a sample before relying on such a file.

For driver's licences there is no reserved range to borrow. The AAMVA card design standard leaves the licence number to each issuing authority, and no source reviewed for this page documents a test range for any state10.

Canadian Social Insurance Numbers carry a Luhn check, so a made-up SIN that passes may be a real one. This page gives no safe SIN test value.

Building a practice folder

Never practice on real patient, customer or employee records. Build a small folder of made-up data instead, an approach that works for testing any scanner:

  1. A CSV file with clear column headers, such as "ssn" and "health card", holding values built from the patterns above.
  2. A short text file with the same values in sentences.
  3. A printed page, scanned or photographed, to test OCR.
  4. A Word file and an archive, which version 2.0.2 does not read, to confirm they are listed as unread on the Coverage tab.

Run the scan, then compare what was reported with what you planted. A known test record can be suppressed afterwards, so it stays in the results with a suppressed flag. Record the reason in your case notes.

How VellumSoft treats numbers from SSA's never-assigned ranges is not covered here. This page also offers no dataset to download.

The identifiers themselves are covered on finding Social Security numbers, and the definitions on what counts as PII. Related reading: how to find sensitive data on your network, finding SSNs with PowerShell, FSRM or regex, what to do after finding employee SSNs on a shared drive and whether Microsoft 365 is HIPAA compliant. The steps of a scan are on how a scan works.

We think the best test file is a small one you built yourself and can explain line by line.

This page explains the law in general terms and is not legal advice.

Questions

Is there an official fake SSN for testing?

There is an official list of numbers that were never assigned. The Social Security Administration says an SSN is invalid if its first three digits are 000, 666 or in the 900 series, if its middle two digits are 00, or if its last four digits are 0000. Avoid the 900 series for fake SSNs, because the IRS issues ITINs that begin with 9.

What does a sample ITIN look like?

The IRS says an ITIN is a nine-digit number in the format of an SSN that begins with the number 9, with fourth and fifth digits from 50 to 65, 70 to 88, 90 to 92 or 94 to 99. Any made-up number inside those ranges could be a real person's ITIN, so describe the pattern and do not publish examples.

What does Medicare MBI test data need to look like?

CMS says an MBI has 11 characters, made of numbers and upper-case letters, and never uses the letters S, L, O, I, B or Z. Certain positions are always letters and others always numbers. CMS also says each MBI is randomly generated, so an invented value in the right format may match a real one.

Is this page the answer key for a PII awareness training test?

No. It is about made-up data for testing software that finds personal information. For the definitions a training course asks about, such as what counts as personally identifiable information, see the page on what PII is.

Sources

Know where the personal data is.

One-time licence, from $399. Runs on your own Windows computer; scanned files and findings are never uploaded.