FORM W-2G File Schema

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

String fields are displayed within quotations

CRLF=Carriage Return Line Feed (Hex 0D0A)


"Name line 1"

"Name line 2"

"Street address line 1"

"Street address line 2"



"Zip code"

"Foreign address indicator" ¹

"Foreign city, province, postal code, etc."

"TIN Type"

"Taxpayer ID"

"Name control"

"Transaction Number"

Gross winnings

Federal income tax withheld

"Type of wager code"

Amount of wager

"Date won" ²


Winnings from identical wagers



"First ID"

"Second ID"

"Reporting state (eg. NY, NJ, ...)"

State winnings

State income tax withheld

Local winnings

Local income tax withheld

Name of locality

"Do not print indicator" ¹

"Client ID"



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

² Use format MMDDYYYY or MMDDYY (21st century is assumed).