Can I convert PDF W-2s into an EFW2 text file?

No. An EFW2 file is not a picture of a W-2 saved as text. It is a series of fixed-width records in which every value sits at the place SSA's specification gives it, and a PDF holds none of that structure. Renaming a PDF to .txt, or saving it as text from a PDF reader, produces a file the agency's upload rejects.

The file has to be built from the payroll data itself: the same figures that went onto the PDFs, taken from a payroll report or spreadsheet.

The question usually comes up when an agency has asked for a "text file" or an "EFW2 file" and the payroll software produced PDFs.

What the agency means by a text file

SSA publishes the format as Publication 42-007, Specifications for Filing Forms W-2 Electronically (EFW2). Every record is exactly 512 characters long. Money is written in cents with no decimal point, names are in capitals, and an empty field is filled with spaces. See what an EFW2 file is and how money is written.

Many agencies use the same format and add their own fields:

Where the data comes from

Almost every payroll system can export a year-end summary per employee to Excel or CSV: wages and tax in each W-2 box, plus name, address and Social Security number. That export, checked against the W-2s you issued, is the input. See what to watch for in an Excel or CSV export, such as Social Security numbers that lose their leading zero.

For an Ohio municipal file, the export also needs each employee's local wages and local tax per municipality, one row per municipality. See an employee who worked in several municipalities.

Turning the spreadsheet into the file

The EFW2 Converter reads that spreadsheet and writes the file for SSA, RITA or CCA. It runs in your browser, checks every row against the agency's rules first, and names the row and employee for each problem it finds. It writes tax year 2026 files only.

Before you upload anything, test it. SSA's AccuWage Online checks a federal file, and RITA's MyAccount tests a W-2 file before upload. See AccuWage errors.

If you cannot produce a file at all

Download the converter

Free for up to 10 employees.

Sources

All information on this page is based on the following guidelines: