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:
- SSA takes the federal file through Business Services Online (BSO).
- RITA requires every electronic W-2 report to follow SSA's EFW2 guidelines, with RITA's own municipality fields filled in.
- CCA takes an EFW2 file with the fields its data dictionary lists for each record.
- Many states and some cities publish their own version, usually SSA's layout with a few changes. Check the agency's specification before assuming SSA's file will do.
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
- SSA: with no file, you can key each W-2 into W-2 Online in BSO, up to 50 per submission. See W-2 Online or a file upload.
- RITA: from tax year 2026, an employer with ten or more W-2s that cannot upload an EFW2 file may key the W-2 data into RITA's MyAccount instead.
- CCA: paper is accepted from an employer filing for fewer than ten employees, or with the Tax Administrator's permission given before you file. Otherwise CCA wants a dataset through its DropSecure service.
- Other agencies: ask the agency what it accepts in place of a file.
Free for up to 10 employees.
Sources
All information on this page is based on the following guidelines:
- SSA Publication 42-007, EFW2 specification for tax year 2026: record length, money and case rules
- SSA: Specifications for Filing Forms W-2 and W-2c Electronically
- RITA 2026 W-2 reporting requirements: EFW2 conformity, MyAccount testing and manual entry
- CCA submittal procedures for tax year 2026
- SSA Electronic W-2 Filing Handbook: W-2 Online and Wage File Upload limits