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.
| # | Column header | What it holds |
|---|---|---|
| 1 | SSN | Nine digits. Dashes and spaces are stripped before the record is written. |
| 2 | FirstName | Required as a column. Carried at 15 characters and truncated beyond that. |
| 3 | MiddleName | Middle name or initial. Optional, 15 characters. |
| 4 | LastName | Required as a column. Carried at 20 characters and truncated beyond that. |
| 5 | Suffix | Jr, Sr, III. Optional, 4 characters. |
| 6 | Address | The employee's street address, 22 characters. |
| 7 | City | The city of that address, 22 characters. Not the taxing municipality. |
| 8 | State | Two-letter postal abbreviation for that address. |
| 9 | ZipCode | Five digits, or nine. |
| 10 | WagesTipsOther | W-2 box 1: wages, tips and other compensation. |
| 11 | FederalTaxWithheld | W-2 box 2: federal income tax withheld. |
| 12 | SocialSecurityWages | W-2 box 3: Social Security wages. |
| 13 | SocialSecurityTax | W-2 box 4: Social Security tax withheld. |
| 14 | MedicareWages | W-2 box 5: Medicare wages and tips. |
| 15 | MedicareTax | W-2 box 6: Medicare tax withheld. |
| 16 | SocialSecurityTips | W-2 box 7: Social Security tips. |
| 17 | DependentCareBenefits | W-2 box 10: dependent care benefits. |
| 18 | StatutoryEmployee | W-2 box 13 checkbox, as Y or N. |
| 19 | RetirementPlan | W-2 box 13 checkbox, as Y or N. |
| 20 | ThirdPartySickPay | W-2 box 13 checkbox, as Y or N. |
| 21 | StateCode | Two-letter abbreviation for the state the wages are reported to. It sets the numeric state code in the file. |
| 22 | StateEmployerID | The state employer account number, 20 characters. Printed in box 15. |
| 23 | StateWages | W-2 box 16: state wages. Printed on employee W-2s; not written to the municipal records. |
| 24 | StateTaxWithheld | W-2 box 17: state income tax withheld. Printed on employee W-2s. |
| 25 | LocalCityCode | The agency's municipality code. RITA and CCA number municipalities differently. Required once a row carries any local tax figure. |
| 26 | LocalCityName | The municipality name. Checked against the code, and used to derive the code when the code is blank. |
| 27 | IsRITACity | Y or N. Named IsCCACity in the CCA template. Optional: membership follows from the code itself. |
| 28 | TaxType | C where the work was done, R where the employee lives. Required once a row carries any local tax figure. |
| 29 | LocalWages | The municipal wage base for this row. |
| 30 | LocalTaxWithheld | The municipal tax withheld from it. |
| 31 | LocalStateName | The state name in full, such as OHIO. It occupies a 75-character field of its own. |
| 32 | AllocatedTips | W-2 box 8: allocated tips. Written to the RO record. |
| 33 | NonQualified457 | W-2 box 11, the Section 457 part. EFW2 reports box 11 as two amounts. |
| 34 | NonQualifiedNot457 | W-2 box 11, the part not under Section 457. |
| 35 | Box12A | Box 12 code A: uncollected Social Security or RRTA tax on tips. Reported separately from B from 2026. |
| 36 | Box12B | Box 12 code B: uncollected Medicare tax on tips. |
| 37 | Box12C | Box 12 code C: taxable cost of group-term life insurance over $50,000. |
| 38 | Box12D | Box 12 code D: 401(k) elective deferrals. |
| 39 | Box12E | Box 12 code E: 403(b) elective deferrals. |
| 40 | Box12F | Box 12 code F: 408(k)(6) SEP elective deferrals. |
| 41 | Box12G | Box 12 code G: 457(b) deferrals. |
| 42 | Box12H | Box 12 code H: 501(c)(18)(D) deferrals. |
| 43 | Box12J | Box 12 code J: nontaxable sick pay. |
| 44 | Box12K | Box 12 code K: 20% excise tax on excess golden parachute payments. |
| 45 | Box12L | Box 12 code L: substantiated employee business expense reimbursements. |
| 46 | Box12M | Box 12 code M: uncollected Social Security or RRTA tax on group-term life insurance. |
| 47 | Box12N | Box 12 code N: uncollected Medicare tax on group-term life insurance. |
| 48 | Box12P | Box 12 code P: excludable moving expense reimbursements paid to a member of the Armed Forces. |
| 49 | Box12Q | Box 12 code Q: nontaxable combat pay. |
| 50 | Box12R | Box 12 code R: employer contributions to an Archer MSA. |
| 51 | Box12S | Box 12 code S: SIMPLE retirement account contributions. |
| 52 | Box12T | Box 12 code T: adoption benefits. |
| 53 | Box12V | Box 12 code V: income from nonstatutory stock options. |
| 54 | Box12W | Box 12 code W: employer contributions to a health savings account. |
| 55 | Box12Y | Box 12 code Y: deferrals under a Section 409A plan. |
| 56 | Box12Z | Box 12 code Z: income under a Section 409A plan that fails its requirements. |
| 57 | Box12AA | Box 12 code AA: designated Roth 401(k) contributions. |
| 58 | Box12BB | Box 12 code BB: designated Roth 403(b) contributions. |
| 59 | Box12DD | Box 12 code DD: cost of employer-sponsored health coverage. |
| 60 | Box12EE | Box 12 code EE: designated Roth contributions to a governmental 457(b) plan. |
| 61 | Box12FF | Box 12 code FF: permitted benefits under a QSEHRA. |
| 62 | Box12GG | Box 12 code GG: income from qualified equity grants under Section 83(i). |
| 63 | Box12HH | Box 12 code HH: aggregate deferrals under Section 83(i) elections. |
| 64 | Box12II | Box 12 code II: Medicaid waiver payments excluded from income. |
| 65 | Box12TA | Box 12 code TA, new for 2026: employer contributions to a Trump account. |
| 66 | Box12TP | Box 12 code TP, new for 2026: cash tips reported to the employer. Requires TippedOccupationCode. |
| 67 | Box12TT | Box 12 code TT, new for 2026: qualified overtime compensation. Already included in box 1. |
| 68 | TippedOccupationCode | W-2 box 14b, new for 2026: the three-digit Treasury Tipped Occupation Code. Required with Box12TP. |
| 69 | SecondaryTippedOccupationCode | W-2 box 14b: a second occupation code, only for an employee with more than one. |
| 70 | DateOfBirth | Optional, 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.
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.
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.