Tables & data

Copy a table from a scanned PDF into a spreadsheet

Turn a table in a scanned, image-only PDF into Excel or Numbers cells: check the scan, straighten and crop it, read the pages, then verify columns and totals.

Title card: Copy a table from a scanned PDF into a spreadsheet

A scanned PDF is a stack of photos of paper. There’s no text to select, so copy and paste gives you nothing, and the free text-recognition tools hand back words without the grid. Getting a scanned table into a spreadsheet takes table recognition, a little preparation and a careful check afterwards.

Quick answer

A scanned PDF is pictures of pages, so there’s no text to copy and Preview’s text recognition returns lines, not cells. Straighten and crop the page if it’s skewed, then use table recognition: Excel’s Data From Picture, or a tool that reads the table on your Mac and pastes cells. Check every column and total against the scan afterwards.

Make sure it’s really a scan

Open the PDF in Preview, choose Tools → Text Selection and try to select one cell. If a single number highlights, the PDF has real text, and copying a table from a text-based PDF is quicker and more accurate. If nothing selects, or the whole page highlights as one block, it’s a scan. Our guide to copying text from a scanned PDF has a few more ways to tell.

Five steps from a scanned PDF table to a checked spreadsheet
The whole job, from a scanned page to a spreadsheet you can trust.

Why scanned tables are harder

Recognizing words on a clean page is mostly solved. Tables on scans add problems that ordinary text doesn’t have:

  • Skew. A page fed through a scanner a few degrees off makes each row drift diagonally into the next column.
  • Faint or missing grid lines. Many tables separate columns with white space only, and photocopying fades whatever lines there were.
  • Complex headers. A heading across two columns, or a header that takes two lines, makes the column structure ambiguous.
  • Noise. Stamps, staple shadows, handwritten notes and highlighter marks land on top of cells.
  • Small, soft digits. At low resolution, 3 and 8, 5 and 6, or 1 and 7 start to look alike.

The free tools don’t keep structure. Preview’s File → Export with Embed Text adds a hidden text layer, and Live Text reads words in a page image, but both give you lines of text. Google Docs can convert a scan uploaded to Drive, but Google’s help page says tables usually aren’t detected.

Straighten and crop first

A few minutes of preparation pays off more than anything else:

  1. Turn sideways pages. In Preview, select the page thumbnail and choose Tools → Rotate Left or Rotate Right.
  2. Fix a slight tilt. Preview’s rotate commands turn a page a quarter at a time. For a page a few degrees off, take a screenshot of the zoomed-in page and drag it into Photos. Open it, click Edit, then Crop, and drag the Straighten slider until the rows run level. Vertical and Horizontal fix a page photographed at an angle. If the document is confidential and you use iCloud Photos, delete the screenshot from your library when you’re done.
  3. Crop to the table. Leave out letterheads, signatures and notes in the margin.
  4. Make it big on screen. Zoom so the table fills the window. Small print scanned at low resolution usually reads better at 200% than at 100%, because the recognizer gets more pixels per character.

Read the pages

There are three good routes, depending on how many pages you have and where the file may go.

Excel’s Data From Picture. In Excel for Microsoft 365, choose Data → Data From Picture → Picture From Clipboard after copying a screenshot of the table, review the result and click Insert Data. It works one image at a time, supports a limited set of languages, and Microsoft processes the picture online. Our image to Excel guide covers it in detail.

In Unpixel

Unpixel reads tables on your Mac with Apple’s Vision framework, either from the screen or from the file.

One page at a time is best when you want to check as you go:

  1. Show the page in Preview, straightened and zoomed.
  2. Press ⇧⌘2 and drag over the table.
  3. Paste into Excel, Numbers or Google Sheets, then move to the next page.

The whole file at once saves time on long tables. Click the Unpixel icon in the menu bar, choose Open Image… and pick the PDF. It reads up to 50 pages in one capture and puts every page’s table on the clipboard, in order. If the document is mostly prose with an occasional table, it’s copied as text; capture those tables from the screen instead.

Two settings help with scans. Keep Recognition mode on Accurate, which suits small, faded or low-contrast text. And if the scan is in one language, turn off Detect language automatically in Settings → Recognition and choose that language.

Tables across pages

When you read a whole file, the result needs stitching. Each page’s table arrives as its own block, with an empty row between blocks. Anything outside the tables, such as page headers, footers and “continued on next page” lines, sits between them as single-cell rows.

To clean it up in Excel:

  1. Select the data and choose Data → Filter.
  2. In the first column’s filter, show only (Blanks), the repeated header text and the page-furniture lines.
  3. Select those visible rows, delete them, and clear the filter.

In Google Sheets, use Data → Create a filter the same way. In Numbers, sorting by the first column is the quickest equivalent: blanks and repeated headers end up together. Add a column numbered 1, 2, 3… before you sort, so you can restore the original order afterwards.

Then check the joins between pages. A row whose description started at the bottom of one page and finished at the top of the next will be two half-rows.

Check columns and totals

Scans produce more misreadings than text PDFs, and a misread digit is still a valid number. Check in this order:

  • Shape. Every row should have its values in the right columns. Sort by each number column, then undo: text values sort apart from numbers and show you which rows shifted.
  • Letters in number columns. An O for zero, an l for 1, an S for 5 or a B for 8 always means a misreading.
  • Totals. Recalculate every total or subtotal the scan prints and compare. When a column doesn’t add up, compare that column with the scan row by row.
  • Sparse columns. Columns of ticks, single letters or occasional values are where gaps hide.
  • Side by side. Put the scan and the spreadsheet next to each other in Split View and spot-check a few random rows end to end.

For converting the text-shaped numbers, dates and currency values that scans tend to produce, see cleaning up pasted table data.

Frequently asked questions

Can Preview copy a table from a scanned PDF?

Preview can recognize the text, with Live Text or by exporting with Embed Text, but it copies lines rather than cells. You then have to split the lines into columns, which is slow for anything bigger than a few rows.

How many pages can Unpixel read in one go?

Up to 50 pages per capture with Open Image…. Each page’s table arrives as its own block, separated by an empty row.

Why are some cells empty when the scan clearly has something in them?

Tiny marks such as a lone digit, a tick or an “x” are the easiest to miss. Unpixel takes a second look at empty cells that contain ink, but faint marks can still slip through, so compare sparse columns with the scan.

Sources

  1. Embed text in a PDF in Preview on Mac — Apple Support support.apple.com
  2. Convert PDF and photo files to text — Google Drive Help support.google.com
  3. Crop or rotate a PDF in Preview on Mac — Apple Support support.apple.com
  4. Crop, extend, reframe, and straighten photos and videos on Mac — Apple Support support.apple.com
  5. Insert data from picture — Microsoft Support support.microsoft.com