# Scanned W2 to Excel From a Scanner or Phone Photo

- Canonical: https://schematax.com/blog/scanned-w2-to-excel
- Author: Schema Tax (https://schematax.com)
- Published: 2026-07-14T16:29:32.000Z
- Updated: 2026-07-14T16:29:32.000Z

To get a scanned W2 into Excel, capture the form as a sharp, flat, evenly lit image, run it through software that reads each box into a named field, and export the result as a spreadsheet row. Then compare a few values, such as Box 1, Box 2 and the employer EIN, against the paper before you use the numbers.

## Scanning a W2 so software can read it

Scanning a W2 so software can read it takes three settings: at least 300 dpi, grayscale or color rather than pure black and white, and a PDF or PNG file instead of a heavily compressed JPEG. A flatbed or sheet-fed scanner keeps the page flat and evenly lit. Save the settings as a preset for every W-2.

Resolution is the setting people get wrong most often. The documentation for Tesseract, a widely used open-source OCR engine, says it "works best on images which have a DPI of at least 300 dpi" ([Tesseract's guide to improving OCR quality](https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html)). A W-2 packs small box labels and amounts into narrow cells, so a lower setting can blur a 3 into an 8 or merge a decimal point with the digit next to it. Going far above that setting mostly makes files larger without making the digits clearer.

Color mode is the second choice. Grayscale keeps the shading that separates printed digits from the light background tint many W-2 copies use. Pure black and white can drop faint characters entirely, because the scanner decides for you which pixels count as ink. The same Tesseract guide notes that converting a page to black and white can give poor results when the background is of uneven darkness, which is common on thin copy paper.

File type is the last setting. A PDF or PNG keeps the image as scanned. Heavy JPEG compression adds blocky smudges around thin strokes, which is exactly where box borders and decimal points live. If your scanner offers a quality slider for JPEG, set it high or switch formats.

### A scan and photo checklist for a W-2

| Step | Scanner | Phone photo | Example of a good result |
| --- | --- | --- | --- |
| Resolution | 300 dpi or higher | Full camera resolution, no digital zoom | Box labels readable when zoomed to 200% |
| Color | Grayscale or color | Default color | Light box shading still visible |
| Format | PDF or PNG | Original photo or PDF from the scan app | No blocky marks around digits |
| Framing | Whole page on the glass | All four corners in frame, small margin | Copy B label and Box 20 both visible |
| Flatness | Lid closed, no curl | Page on a flat table, pressed flat | Box borders look straight |
| Light | Scanner lamp | Even daylight or two lamps, no flash glare | No bright patch across Boxes 1 to 6 |

Keep the checklist near the scanner and run through it before each batch. Most failed conversions trace back to one row of it.

## Taking a W2 photo that converts cleanly

A phone photo of a W-2 converts well when three things are right: the light is even, the camera is square to the page, and the background contrasts with the paper. Each of those is easy to fix before you press the shutter and hard to fix afterwards, so a few seconds of setup saves a retake.

Light comes first. A single overhead lamp throws the shadow of your phone across the middle of the form, which is where the wage and tax amounts sit. Daylight from a window, or two lamps on either side, spreads light evenly. The flash usually makes things worse on glossy or coated paper, because it leaves a white glare spot that hides whatever digits are under it.

Angle comes second. Hold the phone directly above the page so the camera looks straight down. A tilted shot turns the rectangular form into a trapezoid, and the boxes at the far edge come out smaller and softer than the ones nearest the lens. Many scan apps detect page edges and correct this, but they correct it better from a small tilt than from a steep one.

Background comes third. Put the white W-2 on a dark, plain surface such as a desk or a book cover. A white form on a white tablecloth gives edge detection nothing to find, and the app may crop off Box a or the state lines at the bottom. A patterned surface can confuse it the other way, by making the app see a page edge in the pattern.

Finally, check the photo before you leave the page. Zoom in on Box 1 and Box 2. If you can read every digit and the decimal point without squinting, the software probably can too. If the photo is a W2 photo to Excel job for several forms, take each form as its own shot rather than fitting two on one frame.

## Does a W2 scanner app need to straighten the page?

A W2 scanner app does need to straighten a crooked or curled page, either before you upload or as part of reading it. OCR engines read text along lines, and a page rotated a few degrees makes them run uphill. Labels then drift away from the values they belong to, and a figure can land in the wrong box.

The Tesseract documentation says the quality of its line segmentation "reduces significantly if a page is too skewed" and recommends rotating the page so the text lines are horizontal ([Tesseract's guide to improving OCR quality](https://tesseract-ocr.github.io/tessdoc/ImproveQuality.html)). Deskewing, the name for that rotation, is a standard step in most scanning pipelines.

Curl is a separate problem from tilt. A page that was folded in an envelope bows upward along the crease, so the boxes near the fold are stretched in the image. Straightening the whole page cannot undo a local bend. The fix is physical: press the form flat under a book for a few minutes, or close the scanner lid firmly, before you capture it.

Some tools handle all of this for you. Schema Tax straightens crooked scans before it reads them, and boxes it is unsure of are flagged for you to confirm rather than guessed; the [five-step walkthrough on the homepage](/#how) shows where that happens. For phone scanning of every kind of tax form, including multi-page documents, the [tax form OCR category](/blog/category/tax-form-ocr) collects the guides.

## Scanned W2 trouble: faint print, folds and carbon copies

Faint print, deep folds and carbon-style copies cause most misreads on a scanned W2, and each has its own fix before the scanner lid even closes. Faint print loses digits, folds hide or split them, and copies with colored backgrounds lower the contrast between ink and paper. Spotting which problem you have tells you which fix to try.

Faint print often comes from a nearly empty printer cartridge at the employer or payroll office. The digits are there but thin. Scanning in grayscale rather than black and white keeps those light strokes in the image. If the scan still looks washed out, a second copy of the form is worth requesting. The [IRS General Instructions for Forms W-2 and W-3](https://www.irs.gov/instructions/iw2w3) ask employers to use black ink and, if possible, 12-point Courier on the forms, which is a fair standard to measure a faint copy against.

Folds are the second problem. A crease that runs through a row of boxes can hide a digit in the shadow of the fold or split a number across two flat panels. Flatten the form first. If a crease still crosses Box 1 or Box 2, compare those digits against the paper with extra care after conversion.

Colored or tinted copies are the third. Employee copies of a W-2 come as Copy B, Copy C and Copy 2, according to the IRS instructions, and some are printed on tinted paper. A tint that looks pale to your eye can still cut contrast for a machine. Color or grayscale scanning keeps the tint as a separate shade instead of letting it merge with the digits.

Stamps, staples and handwriting are the last group. A staple hole near the EIN can turn a 0 into an 8. Remove staples before scanning. Handwritten notes in the margins are usually harmless, but a note written inside a box will be read as part of that box. Write on a sticky note instead, and remove it before you scan.

## What should you check after a scanned W2 becomes a spreadsheet?

After a scanned W2 becomes a spreadsheet, check five values against the paper form: Box 1, Box 2, the Social Security pair in Boxes 3 and 4, the Medicare pair in Boxes 5 and 6, and the employer EIN. Those carry the most weight later, and two of the checks are arithmetic you can do in the sheet itself.

### A five-item post-conversion check

The example values below are fictional and stand in for one W-2 from a single employer.

| # | What to compare | Example value in Excel | How to check it |
| --- | --- | --- | --- |
| 1 | Box 1, wages, tips, other compensation | 58,240.00 | Read it digit by digit against the paper |
| 2 | Box 2, federal income tax withheld | 6,110.00 | Same; a swapped digit here changes your refund math |
| 3 | Box 4 against Box 3 | Box 3 61,000.00, Box 4 3,782.00 | Box 4 should equal 6.2% of Box 3 |
| 4 | Box 6 against Box 5 | Box 5 61,000.00, Box 6 884.50 | Box 6 should equal 1.45% of Box 5 |
| 5 | Box b, employer EIN | 12-3456789 | Two digits, a hyphen, seven digits, with no digit dropped |

The rates in rows 3 and 4 come from the [IRS General Instructions for Forms W-2 and W-3](https://www.irs.gov/instructions/iw2w3), which give 6.2% for Social Security tax and 1.45% for Medicare tax. The same instructions cap Social Security wages for 2026 at $184,500, so Box 4 should not exceed $11,439 on a 2026 form. A Box 4 that does not match 6.2% of Box 3 is either a misread or something worth asking your employer about.

Row 5 matters more than it looks. The instructions say the EIN uses the XX-XXXXXXX format and may never be truncated, so a nine-digit EIN in the spreadsheet should always be complete. Excel can also strip a leading zero from an ID, a problem the [guide to keeping EIN and ZIP code leading zeros in a W2 CSV](/blog/w2-to-csv#keeping-ein-and-zip-code-leading-zeros-in-a-w2-csv) covers.

Beyond the five rows, scan the rest of the row quickly. Box 12 codes should be a letter or letter pair followed by an amount, and the state lines in Boxes 15 to 17 should name a state you worked in. A value that looks odd is cheaper to fix now than after it has been copied into a return or a budget.

### Where the row goes next

Once the checks pass, the row is ready to use. If you want a column order that holds one form per row and leaves room for Box 12 pairs and a second state, the [one-row-per-W2 Excel column layout](/blog/w2-to-excel#one-row-per-w2-an-excel-column-layout) lays it out. If the next step is an import into another tool rather than a workbook, [converting a W2 to CSV](/blog/w2-to-csv) explains how to keep the numbers intact on the way. Developers who would rather load the form into code can read about the [W2 JSON shape with a field name for every box](/blog/w2-to-json).
