FORM W-2 File Schema

Sample File = Schema\2021\TEXT\W2.txt

String fields are displayed within quotations

CRLF=Carriage Return Line Feed (Hex 0D0A)


"Control number"

"First name"

"Middle initial"

"Last name"


"Full name"

"Street address line 1"

"Street address line 2"



"Zip code"

"Zip code extension"

"USPS Delivery Point"

"Foreign address indicator" ¹

"Foreign state or province"

"Foreign postal code"

"Foreign country code (2 characters)"

"Applied For SSN indicator" ¹

"Social security number (enter as 9 digits)"

Wages, tips, other compensation

Federal income tax withheld

Social security wages

Social security tax withheld

Medicare wages and tips

Medicare tax withheld

Social security tips

Allocated tips

Dependent care benefits

Nonqualified plans

"Box 12a code"

Box 12a amount

"Box 12b code"

Box 12b amount

"Box 12c code"

Box 12c amount

"Box 12d code"

Box 12d amount

"Statutory employee indicator" ¹

"Retirement plan indicator" ¹

"Third-party sick pay indicator" ¹

"Box 14 (Other) line 1"

"Box 14 (Other) line 2"

"Box 14 (Other) line 3"

"State 1" ²

State 1 wages

State 1 tax withheld

Locality 1 wages

Locality 1 tax withheld

"Name of Locality 1"

"Local 1 Type"

"State 2" ²

State 2 wages

State 2 tax withheld

Locality 2 wages

Locality 2 tax withheld

"Name of Locality 2"

"Local 2 Type"

"Payment entity"

"Not subject to FICA indicator" ¹

"Do not print indicator" ¹

"Employee ID"

"E-Mail address"

"Client ID"



¹ "X" if applicable, otherwise, enter a null string ""

² Two character FIPS code, e.g. NY, NJ, ..., or a null string ""