document-understanding
latest
false
UiPath logo, featuring letters U and I in white

Document Understanding Modern Projects User Guide

Last updated May 15, 2025

W2 - document type

Overview

Form W-2 (or, Wage and Tax Statement) is an Internal Revenue Service (IRS) tax form used in the United States to report wages paid to employees and the taxes withheld from them.

This model is trained to extract up to 23 fields of relevant data on W-2 that can be either used as a base for future training or adjusted to meet business process requirements.

Particularities

The model automatically detects data such as:

  • Employer Name, Address, FED ID, SSA Number, Social Security Wages, Federal Income Tax Withheld, Medicare Wages and Tips, Dependent Care Benefits.

Extracted fields

Note: If you are using using public endpoints, such as https://du.uipath.com/ie/invoices, all fields are available. However, if you are using custom-trained extractors, the availability of extracted fields is dependant on the version you are currently using.
You can also check the list of fields and types on any endpoint in the /info/model object. To access this, simply add /info/model to any endpoint, like so: https://du.uipath.com/ie/invoices/info/model. For an enhanced reading experience of the fields list, it's recommended to install a JSON viewer extension in your browser.
Table 1. List of extracted fields for W2
Display NameField NameField TypeContent Type
a Employee Social Security Numberssnregularid-no
b Employer FED ID Numbereinregularid-no
c Employer Addressemployer-addrregularstring
e/f Employee Nameemployee-nameregularstring
e/f Employee Addressemployee-addrregularstring
Field 1: Wages, tips and other comp.1-wagesregularnumber
Field 2 Federal Income Tax Withheld 2-fed-tax-withhelfregularnumber
Field 3 Social Security Wages3-soc-sec-wagesregularnumber
Field 4 Social Security Tax Withheld4-socsec-tax-withheldregularnumber
Field 5 Medicare Wages5-medicare-wagesregularnumber
Field 6 Medicare Tax Withheld6-medicare-tax-withheldregularnumber
Field 7 Social Security Tips7-socsec-tipsregularnumber
Field 8 Allocated Tips8-allocated-tipsregularnumber
Field 10 Dependent Care Benefits10-dep-care-benefitsregularnumber
Field 11 Nonqualified Plans11-nonqual-plansregularnumber
12 Codes12-codeitemsid-no
12 Amounts12-amountitemsnumber
Field 13 Option Statutory Employee13-statutoryregularstring
Field 13 Option Retirement Plan13-retirementregularstring
Field 13 Option Third Party Sick Pay13-third-partyregularstring
Field 14 Other Information14-otherregularstring
9 Advance EIC Payment9-advance-eic-paymentregularnumber
Tax Yearyearregularnumber
Employee First Nameemployee-first-nameregularstring
Employee Suffixemployee-suffixregularstring

Samples

Here is a sample of a W2 form:



  • Overview
  • Particularities
  • Extracted fields
  • Samples

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2025 UiPath. All rights reserved.