What is an EFW2 file?
An EFW2 file is the Social Security Administration's format for filing W-2 data electronically. It holds the same information as a paper W-2, but each value sits at a fixed character position instead of in a box.
EFW2 is SSA's own name for the format. You will see it in SSA's publication titles and on its upload screens.
The file has no commas, tabs, column headers or field names. Each value is found by where it sits in the record, so every value has to be in exactly the right place.
What an EFW2 record looks like
Each record is exactly 512 characters long. These are the first 45 characters of an employee wage record:
RW234567890Dana Acht
RW identifies the record type. Then come the Social Security number, nine digits with no hyphens, and the first name, padded with spaces to its full width. The middle name comes next, whether or not the employee has one.
Every field always takes up its full width. A fifteen-character first name field holding "Dana" contains "Dana" followed by eleven spaces, and those spaces are part of the record.
The records in a file
A complete file is a series of records in a fixed order.
| Record | What it is |
|---|---|
| RA | Submitter. Who is transmitting the file. One, first. |
| RE | Employer. Whose payroll this is. |
| RW | Employee wages. One per employee. |
| RO | Box 8 and the box 12 codes not on the RW record, such as TT for qualified overtime. Only for employees who have them. |
| RS | State and local wages. Follows the employee it belongs to. |
| RT | Totals for the employer's RW records. |
| RU | Totals for the RO records. Only when the file has any. |
| RF | End of file. Last. |
See the record types.
Why the file looks like one long line
A generated file contains no line breaks. Each 512-character record is followed immediately by the next. If you open one in Notepad you see a single line thousands of characters long, and that is how a correct file looks. Keep this in mind before you try to read one by eye or open it in a spreadsheet.
EFW2 files for Ohio municipal tax
Ohio municipal income tax is collected by two agencies, RITA and CCA, covering hundreds of municipalities. Both accept W-2 data in the EFW2 format, with extra fields for the municipality and the local tax. See who RITA is and a letter from CCA.
Both require electronic filing once you have ten or more W-2s, which is when most employers first need to produce one of these files.
How to create an EFW2 file
Payroll systems for larger employers usually produce federal EFW2 files. The municipal fields are another matter, because they are specific to the Ohio agencies and sit outside the standard federal record.
The EFW2 Converter reads your payroll spreadsheet and writes the file, municipal fields included, on your own computer.
Official sources
All information on this page is based on the following official sources:
- SSA's employer publications: Publication 42-007 (EFW2) and 42-014 (EFW2C, for corrections)
- Business Services Online, where the file is uploaded