How to create an EFW2 file, step by step

Most of the work happens in the converter on your own computer. Checking SSNs, running AccuWage and uploading the file happen on SSA's and the agencies' own sites.

1. Start from the template

The converter's Instructions tab has a sample template in Excel and CSV. Use it instead of your own column names: the converter maps each column name to a record position.

The template has 70 columns. If you build your own spreadsheet to match, put these headers in row 1, spelled exactly as shown and in this order.

Every column in the sample template, in the order the template puts them.
#Column headerWhat it holds
1SSNNine digits. Dashes and spaces are stripped before the record is written.
2FirstNameRequired as a column. Carried at 15 characters and truncated beyond that.
3MiddleNameMiddle name or initial. Optional, 15 characters.
4LastNameRequired as a column. Carried at 20 characters and truncated beyond that.
5SuffixJr, Sr, III. Optional, 4 characters.
6AddressThe employee's street address, 22 characters.
7CityThe city of that address, 22 characters. Not the taxing municipality.
8StateTwo-letter postal abbreviation for that address.
9ZipCodeFive digits, or nine.
10WagesTipsOtherW-2 box 1: wages, tips and other compensation.
11FederalTaxWithheldW-2 box 2: federal income tax withheld.
12SocialSecurityWagesW-2 box 3: Social Security wages.
13SocialSecurityTaxW-2 box 4: Social Security tax withheld.
14MedicareWagesW-2 box 5: Medicare wages and tips.
15MedicareTaxW-2 box 6: Medicare tax withheld.
16SocialSecurityTipsW-2 box 7: Social Security tips.
17DependentCareBenefitsW-2 box 10: dependent care benefits.
18StatutoryEmployeeW-2 box 13 checkbox, as Y or N.
19RetirementPlanW-2 box 13 checkbox, as Y or N.
20ThirdPartySickPayW-2 box 13 checkbox, as Y or N.
21StateCodeTwo-letter abbreviation for the state the wages are reported to. It sets the numeric state code in the file.
22StateEmployerIDThe state employer account number, 20 characters. Printed in box 15.
23StateWagesW-2 box 16: state wages. Printed on employee W-2s; not written to the municipal records.
24StateTaxWithheldW-2 box 17: state income tax withheld. Printed on employee W-2s.
25LocalCityCodeThe agency's municipality code. RITA and CCA number municipalities differently. Required once a row carries any local tax figure.
26LocalCityNameThe municipality name. Checked against the code, and used to derive the code when the code is blank.
27IsRITACityY or N. Named IsCCACity in the CCA template. Optional: membership follows from the code itself.
28TaxTypeC where the work was done, R where the employee lives. Required once a row carries any local tax figure.
29LocalWagesThe municipal wage base for this row.
30LocalTaxWithheldThe municipal tax withheld from it.
31LocalStateNameThe state name in full, such as OHIO. It occupies a 75-character field of its own.
32AllocatedTipsW-2 box 8: allocated tips. Written to the RO record.
33NonQualified457W-2 box 11, the Section 457 part. EFW2 reports box 11 as two amounts.
34NonQualifiedNot457W-2 box 11, the part not under Section 457.
35Box12ABox 12 code A: uncollected Social Security or RRTA tax on tips. Reported separately from B from 2026.
36Box12BBox 12 code B: uncollected Medicare tax on tips.
37Box12CBox 12 code C: taxable cost of group-term life insurance over $50,000.
38Box12DBox 12 code D: 401(k) elective deferrals.
39Box12EBox 12 code E: 403(b) elective deferrals.
40Box12FBox 12 code F: 408(k)(6) SEP elective deferrals.
41Box12GBox 12 code G: 457(b) deferrals.
42Box12HBox 12 code H: 501(c)(18)(D) deferrals.
43Box12JBox 12 code J: nontaxable sick pay.
44Box12KBox 12 code K: 20% excise tax on excess golden parachute payments.
45Box12LBox 12 code L: substantiated employee business expense reimbursements.
46Box12MBox 12 code M: uncollected Social Security or RRTA tax on group-term life insurance.
47Box12NBox 12 code N: uncollected Medicare tax on group-term life insurance.
48Box12PBox 12 code P: excludable moving expense reimbursements paid to a member of the Armed Forces.
49Box12QBox 12 code Q: nontaxable combat pay.
50Box12RBox 12 code R: employer contributions to an Archer MSA.
51Box12SBox 12 code S: SIMPLE retirement account contributions.
52Box12TBox 12 code T: adoption benefits.
53Box12VBox 12 code V: income from nonstatutory stock options.
54Box12WBox 12 code W: employer contributions to a health savings account.
55Box12YBox 12 code Y: deferrals under a Section 409A plan.
56Box12ZBox 12 code Z: income under a Section 409A plan that fails its requirements.
57Box12AABox 12 code AA: designated Roth 401(k) contributions.
58Box12BBBox 12 code BB: designated Roth 403(b) contributions.
59Box12DDBox 12 code DD: cost of employer-sponsored health coverage.
60Box12EEBox 12 code EE: designated Roth contributions to a governmental 457(b) plan.
61Box12FFBox 12 code FF: permitted benefits under a QSEHRA.
62Box12GGBox 12 code GG: income from qualified equity grants under Section 83(i).
63Box12HHBox 12 code HH: aggregate deferrals under Section 83(i) elections.
64Box12IIBox 12 code II: Medicaid waiver payments excluded from income.
65Box12TABox 12 code TA, new for 2026: employer contributions to a Trump account.
66Box12TPBox 12 code TP, new for 2026: cash tips reported to the employer. Requires TippedOccupationCode.
67Box12TTBox 12 code TT, new for 2026: qualified overtime compensation. Already included in box 1.
68TippedOccupationCodeW-2 box 14b, new for 2026: the three-digit Treasury Tipped Occupation Code. Required with Box12TP.
69SecondaryTippedOccupationCodeW-2 box 14b: a second occupation code, only for an employee with more than one.
70DateOfBirthOptional, MM/DD/YYYY. Used only in the SSN verification (SSNVS) file sent to SSA.

Only SSN, FirstName and LastName are required columns. LocalCityCode and TaxType become required once a row has any local tax data.

2. Fill it in from your payroll export

Export from the system that produces your W-2s and map the columns across. Two things cause most of the rework.

An employee who works in one municipality and lives in another needs two rows, one with TaxType C and one with TaxType R. The converter writes a separate RS record for each. See employment records versus residence records.

Municipality codes come from the agency's published table. A ZIP code is not a municipality code, and neither is the location ID your payroll system uses for a work site. RITA's codes have three digits and are written to the file with an R0 prefix.

3. Validate your data

Load the spreadsheet and validation runs straight away, before you fill in any employer details. It reports on every row at once.

Errors block generation. Warnings do not, because a warning is a question about your data. For example, Medicare wages well above federal wages are usually a mistake but are occasionally a non-qualified deferred compensation plan, and only you know which.

Every finding gives the spreadsheet row number and the employee's last name.

4. Verify employee names and SSNs with SSA (optional)

Download the SSNVS file from the converter and upload it in Business Services Online, under the Social Security Number Verification Service. SSA checks each employee's name and SSN against its records and returns results the next business day. Load the results back into the converter and it lists the rows to correct. See checking names and SSNs.

5. Generate the EFW2 file

Fill in the submitter section (who is sending the file) and the employer section (whose payroll it is). An employer filing for itself enters the same organisation in both. A practice filing for a client does not.

Generate creates the file and shows a preview. The file is one continuous run of 512-character records with no line breaks, so a text editor shows it as a single very long line. That is correct: a file with line breaks in it would be defective.

The Generate EFW2 File section after a successful run: a green confirmation that all required fields are complete, the Generate, Download .TXT and Download .ZIP buttons, and a preview pane listing each record tagged RA, RE, RW, RS, RT and RF.
The generate and download step in the tax year 2026 converter, with RITA chosen. Seven sample employees produce eighteen records: RA, RE, an RW and an RS for each row, then RT and RF.

Download it as .txt or .zip. Some agencies prefer the archive.

6. Check the file with AccuWage

AccuWage Online is SSA's file checker, inside Business Services Online. It reflects what SSA does with a submitted file, so run it even when the converter reports no problems. The converter checks your payroll data and the record layout. AccuWage checks the submission.

See AccuWage errors, decoded.

7. Upload to SSA, RITA or CCA

Federal files go to SSA through Business Services Online. RITA and CCA each have their own upload. If you have not registered for BSO, do it well ahead of time, because the activation code comes by post. See why mid-December is the real deadline.

8. Print W-2s for your employees

From the same spreadsheet, the converter prints Copies B, C and 2 of Form W-2 for each employee on plain paper, with every municipality they paid tax to. See printing employee W-2s.

Download the converter