Which Social Security numbers are not valid on a W-2 file

A W-2 file will not accept a Social Security number that begins with 666 or 9, has 000 as its first three digits, 00 as its middle two or 0000 as its last four, or is not exactly nine digits. These patterns have never been issued.

In the file, an SSN takes up nine characters with no punctuation. The converter checks every number against these rules before generating the file, and each finding names the spreadsheet row and the employee's last name.

SSN validation rules

Pattern Why
Not exactly nine digitsReported with the count found, which is usually eight after a spreadsheet stripped a leading zero
000000000Allowed only for an employee who has applied for a number: a warning, not an error (see below)
Begins 666Never issued
Begins 9Reserved for Individual Taxpayer Identification Numbers
Area 000, the first three digitsNever issued
Group 00, digits four and fiveNever issued
Serial 0000, the last four digitsNever issued

The converter removes punctuation first, so 123-45-6789 and 123456789 are the same number. A nine-character value that includes hyphens is seven digits once they are removed, and is reported that way.

SSNs that begin with 9 (ITINs)

SSN "912345678" starts with 9 - SSNs starting with 9 are reserved (ITIN) and
not valid for W-2 filing

Numbers beginning with 9 are ITINs, issued to people who have a tax obligation but are not eligible for a Social Security number. An ITIN is valid on a tax return. It is not valid on a W-2.

This usually means an ITIN was entered in the Social Security number field during onboarding and has stayed there since, looking correct on every form that does not check the first digit. It comes to light at year end, when a form finally does.

Eight-digit SSNs from a spreadsheet

An SSN that begins with zero is the most fragile value in a payroll export. A spreadsheet treats it as a number, and numbers do not keep leading zeros, so 012345678 becomes 12345678. Eight digits is an error.

Format the column as Text before you enter or paste the data. Changing the format afterwards does not restore the zero. See Excel or CSV.

An employee who has applied for a number but has none yet

SSA and the IRS allow for this. On a paper W-2 you write "Applied For" in the SSN box. In an electronic filing you enter zeros: nine zeros in an uploaded file, or 000-00-0000 in W-2 Online. When the number arrives, you correct the filing with a W-2c showing it, and the employee should contact SSA if the name needs changing.

The converter accepts an all-zero SSN for this case and writes nine zeros into the file. It shows a warning naming the row and the employee, so a missing number is never filed by accident. The employee's printed W-2 shows "Applied For" in box a, and the SSN verification file leaves that employee out, since there is no number to verify yet.

Why invalid SSNs are errors, not warnings

A wrong Social Security number affects the employee more than the employer. Wages credited to a number that was never issued are credited to nobody, and the employee finds out years later when their earnings record is missing a year.

The agency would reject the file anyway, so the converter does not generate it.

What the SSN check does not cover

The checks above only test that a number is well formed. They cannot tell whether it belongs to the employee named beside it: a transposed digit or another person's number passes every rule.

Only SSA can confirm that a name and number match, through its Social Security Number Verification Service (SSNVS). The converter writes the SSNVS upload file from the same spreadsheet. You upload it in Business Services Online, SSA posts the results the next business day, and you load them back into the converter, which lists each employee who did not match by row and last name. Do this before you file, so a wrong number is corrected on the W-2 instead of on a W-2c.

See verifying employee SSNs with SSNVS and how to register for SSNVS.

The converter does not reject numbers that are only unlikely. 123456789 passes every structural rule, so it passes.

Sources

All information on this page is based on the following guidelines: