StubCSV
Form W-2 · free converter

W-2 to CSV and Excel Converter

Extract every box from a W-2 PDF into a CSV you can open in Excel or Google Sheets: wages, federal and state withholding, Social Security, Medicare, and box 12 codes. Two W-2s a day are free, and your file is never stored.

  • No signup
  • Files never stored
  • SSNs masked
  • 2 free conversions a day
Processed in memory · never stored
No PDF handy? Try a sample:

Why convert a W-2 to CSV?

A W-2 packs about thirty numbers into a grid designed for paper. When you need those numbers somewhere else, like a tax-prep spreadsheet, a mortgage application, or a comparison of several jobs in one year, retyping them is slow and error-prone. A single transposed digit in box 1 or box 2 can throw off a whole return.

StubCSV reads the text inside your W-2 PDF, finds each labeled box, and gives you a CSV with one row per box: box number, description, and value. Download the one-row summary instead if you want each W-2 as a single row to stack into a yearly ledger.

How to extract W-2 data into Excel

Download your W-2 from your employer's payroll portal as a PDF and drop it into the converter above. Review the preview, then download the CSV. Double-click the file to open it in Excel, or use File → Import in Google Sheets.

Had more than one job this year? Convert each W-2 and download the one-row summary CSV for each. Paste the rows under each other and you can total wages and withholding across employers in a single sum. Paid plans can also export a formatted .xlsx workbook.

Built-in sanity checks

After extraction we check the relationships the IRS expects. Social Security tax in box 4 should be 6.2% of box 3, and Medicare tax in box 6 should be at least 1.45% of box 5. If something doesn't line up, you'll see a warning before you download, so you know which values to double-check against the PDF.

Where to get a W-2 PDF that works

Most employers deliver W-2s through their payroll portal (ADP, Paychex, Gusto, Workday, and others) as a downloadable PDF. Those digital PDFs have a text layer and convert cleanly. If you only have a scan or a photo of a paper W-2, open the portal copy instead, or use Print → Save as PDF from the portal's viewer.

See the output

What the CSV looks like

Real output from our synthetic sample W-2. Run it through the converter yourself; samples never use a free conversion.

sample-w2.pdfsample-w2.csvSynthetic data · no real person
Tax yearBoxDescriptionValue
20251Wages, tips, other compensation72418.50
20252Federal income tax withheld8541.32
20253Social security wages76648.50
20254Social security tax withheld4752.21
20255Medicare wages and tips76648.50
20256Medicare tax withheld1111.40
202512aBox 12a (code amount)D 4,230.00
202516State wages, tips, etc.72418.50
202517State income tax3331.25

Employer and employee columns repeat on every row and are hidden here to fit the screen. Showing 9 of 29 rows. The SSN row comes back masked as ***-**-4821.

Convert your own W-2

How it works

W-2 PDF to CSV in three steps

  1. Step 1

    Get a text PDF

    Download your W-2 from your payroll or tax portal. If it came as a photo or scan, open it there and use Print → Save as PDF.

  2. Step 2

    Drop it in

    We read the PDF's text layer in memory, find each field, and cross-check the math so you can trust the result.

  3. Step 3

    Download the CSV

    Preview every line, then download a tidy CSV that opens in Excel, Google Sheets, or Numbers.

Your payroll PDF never touches a disk.

Pay stubs and tax forms are some of the most sensitive documents you own. StubCSV is built so we couldn't hand them over even if someone asked: we simply don't keep them.

Read the privacy policy
  • Processed in memory

    Your PDF is read into server memory, parsed, and discarded the moment the response is sent.

  • Nothing is stored

    No disk writes, no database, no file storage bucket. There is nothing to leak later.

  • SSNs masked

    Social Security numbers and recipient TINs come back as ***-**-1234. We never send the full number back.

  • No content logging

    We don't log file contents or extracted values. The CSV is generated in your browser.

Pricing

Two free conversions every day

That covers most people. Working through a stack? A one-time pack of 50 credits is $19, or go unlimited for $9 a month.

Free

$0

2 conversions / day

  • 2 conversions per day
  • Pay stubs, W-2s, and 1099-NECs
  • CSV download (detailed + summary)
  • No signup, files never stored

Credit pack

Most popular

$19one-time

50 conversions

  • 50 conversions, never expire
  • Excel (.xlsx) export
  • Everything in Free
  • Great for a loan or rental application

Unlimited

For bookkeepers

$9/ month

Unlimited conversions

  • Unlimited conversions
  • Excel (.xlsx) export
  • Everything in Free
  • Cancel anytime

FAQ

W-2 to CSV and Excel Converter: FAQ