How to Extract Tables from PDF: Steps and Common Methods

Explain how to extract tables from a PDF: first determine whether the file is a text-based PDF or a scanned image, then choose a route among copy-paste, exporting to Excel or Word, and online conversion, and give a verification method for each step.

Key points of this article

  • First, select a passage of text to determine whether the PDF is a text-based file or a scanned image, as this decides whether tables can be copied directly
  • Text-based tables can be copied and pasted; when columns are misaligned, use the text-to-columns feature in a spreadsheet program to tidy them up
  • For tables that are numerous or have complex layouts, exporting to Excel or Word is easier than manual copying
  • Scanned files must first be processed with OCR; after recognition, check the numbers and decimal points cell by cell
  • After extraction, compare against the original to check total rows, headers repeated across pages, and units, and confirm that no data is missing

How to extract tables from a PDF is a problem many people run into when preparing reports, writing papers, or organizing contract attachments. Tables look neat in a PDF, but when you try to bring them into a spreadsheet for calculation, they often turn into a jumble of misaligned text or simply cannot be selected. The reason is that a PDF records "how things are drawn on the page," not "this is a table with a given number of rows and columns," so the extraction method depends first on examining the file itself.

This article is written for people who need to put tabular data to use: students doing statistics, office staff compiling price quotations, and researchers who need to verify figures. After reading it, you will be able to judge which method suits the PDF you have, know the steps for each method, and know how to check the results to make sure they are reliable.

How do you extract tables from a PDF? One-sentence conclusion

For text-based PDFs, copy or export first; for scanned documents, run OCR before organizing; when there are many tables or they need repeated use, export to Excel or Word first.

Your situationRecommended PracticesCause
Can I select the text in the table? The table has only a few rows.Copy directly, then paste into a spreadsheet application.Steps at minimum, no extra conversion needed
Can text be selected, and does the table have dozens of rows or more?Export to Excel, or export using a PDF editorThe matrix structure is preserved more completely, reducing manual adjustments.
The table needs to be placed into the document so I can keep editing itExport to Word, or translate on the OmniDoc web page and then downloadThe table is kept in document table form so that it is easy to modify the layout.
Text cannot be selected; the table is a scanned image.OCR first, then export or copyWithout recognition, the software can't get the text content.
Table spans multiple pages, or has merged cellsManually check the headers and merged cells after exportAutomatic conversion easily breaks apart merged cells.

Before You Begin: Confirm These Points

Spending two minutes to judge before you act often saves a lot of detours.

  • Confirm whether it is a text-based PDF. Drag your mouse across some text in a table cell. If you can select and highlight it, a text layer exists, and copying and exporting will be fairly reliable. If you can't select anything, or what gets selected is an image, you'll need to run OCR first.
  • Check for merged cells and diagonal headers. These structures are prone to errors in any conversion tool, so note where they are before extracting, then check them closely afterward.
  • Determine how the numbers will be used. If they are amounts, dosages, or statistical results, errors in decimal points and minus signs have serious consequences, so compare every cell against the original after extraction. If the table is only for reference, spot-checking is enough.
  • Confirm whether the file can be shared externally. For contracts, medical records, internal reports, and similar files, read the privacy terms before using an online tool. Sensitive content is better processed locally.
  • Decide where the output is going. Determine whether you need the data in Excel for calculations or in Word as an attachment, since this determines which export format to use and helps you avoid repeated conversions.

Steps to Extract PDF Tables in OmniDoc

If you only need the tables, OmniDoc's free extraction is the simpler option: upload a PDF or scanned file, and the tables are output directly as Markdown tables, with the row and column structure also saved in document.json. Scanned files are first processed for text and table recognition. You need to log in to an OmniDoc account (registration is free). A single PDF can be up to 501 pages, the monthly quota is unlimited, and free jobs have to queue.

The process below applies to two entry points: the PDF editor in the desktop client, and document translation on the omnidoc.top web page. If you only need to keep tables in the translated text, the web version is more direct; if you want to export tables to Excel or Word for further processing, the desktop client is more suitable. The desktop client can be downloaded at download.omnidoc.top.

  1. Open the PDF to be processed. Open the file in the desktop client, first turn to the page where the table is, and confirm the table is fully visible.
  2. Determine whether OCR is needed. If the text in the table cannot be selected, first use the PDF editor's OCR function to recognize the whole document or the relevant pages so that a text layer is generated.
  3. Check the recognized text. On the page, select a few cells of the table again to confirm the text can be selected and that the numbers and units are not obviously garbled.
  4. Choose an export method. If calculations are needed, export to Excel; if the table should stay in the document, export to Word. For a document with many pages, you can process only the pages containing tables first and then merge the results.
  5. Process the translation on the web (optional). If the file containing the table is a paper or report that needs translating, go to omnidoc.top, upload the PDF, choose bilingual side-by-side or translation-only output, and download the result. The table is kept along with the document in the translation, which makes it suitable for side-by-side reading.
  6. Organize the data in a spreadsheet program. If, after pasting, whole rows are squeezed into one column, use the spreadsheet program's text-to-columns feature to split by space, tab, or fixed width.
  7. Complete the headers and formatting. After exporting, check whether the header is in the first row, whether merged cells need to be manually split or filled in, and whether numeric columns were misrecognized as text.
  8. Save a copy and keep the original file. Save the organized table as a new file under a different name, and do not overwrite the original PDF, so you can compare against it later.

Verify item by item after completion

Getting the result is not the same as being done. The checklist below covers common problems.

Inspection itemHow do you look at it?What should I do if I have a problem?
Number of rows and columnsRecount against the original table page by page, especially the tables that span multiple pages.Missing lines are mostly caused by pagination; go back to the original page and copy them again.
Digits and Decimal PointRandomly spot-check a dozen or so cells and compare them against the original text.Decimal-point or minus-sign errors are common in OCR output and must be corrected cell by cell.
Total row and formulasRecalculate the totals in a spreadsheet and check whether they match the original text.When the numbers don't match, first check whether the figures are misaligned, then check whether there are hidden rows.
Table headers and unitsConfirm that each column header and unit (yuan, 10,000 yuan, %) has not been mixed into the data area.If the table headers are misaligned, re-split the columns, and the units can be added separately in the headers.
Merge cellsCheck the original table to see which cells were originally merged.Manually split apart and rewrite the corresponding content to avoid errors in subsequent calculations.
Chinese, English, and special symbolsCheck for garbled characters and mixed full-width and half-width charactersUse Find and Replace to unify the symbols, and retype the garbled parts by checking them against the original text.

Results involving OCR or machine translation must be checked item by item against the source, especially important figures; do not use them directly.

📊 Core Comparison

MethodSuitable scenariosMain limitations
Copy and paste directlySmall table, simple structure, only a small amount of dataLists are prone to misalignment, and merged cells need manual fixing.
Export to ExcelThe text has many tables, and calculations or statistics need to be done.Complex layouts may require adjustments
Export as WordTo put the table into the document and continue editingWeak data computation ability
Online conversion websiteHandle it occasionally, no need to install software.Note the file size limits, watermarks, and privacy terms.
First OCR, then extractScanned or image-based tableThe recognition results need to be checked cell by cell.

❓ Frequently Asked Questions (FAQ)

1. How to Choose a Free PDF Table Extraction Tool?

When choosing a free tool, check four things first: whether its file size limit fits your files, whether the output has a watermark, whether the privacy terms after uploading a file are acceptable, and whether the table's row and column structure can be preserved. If any one of these is not met, switch to another approach, such as a local desktop client or simply copying and pasting.

2. Can tables in scanned PDFs be exported directly?

Generally, it can't be exported directly, because a scanned document contains only images and no selectable text. First run OCR to recognize the text and generate a text layer, then copy or export it. After recognition, check the numbers carefully, especially decimal points and similar-looking characters.

3. The copied table is all squeezed into one column—what should I do?

This is a common situation, which indicates that the column separators were not preserved when pasting. You can first paste the content into a plain text editor to take a look, then use the text-to-columns feature of your spreadsheet software to split it by spaces or tabs. If the column widths are irregular, you can first split by fixed width, then manually correct individual cells.

4. How can I make sure no rows are lost in a long table that spans multiple pages?

Pay special attention to page breaks. After extracting page by page, keep only one copy of each page's table header, then check the total row count against the original. If there are subtotal rows, recalculate them with formulas, which quickly reveals any missing data.

5. Can the extracted tables be used directly in formal reports?

The extracted results are suitable as working papers. Before formal use, key figures should be checked against the original text, especially amounts, statistical results, and totals, and confirmed by the person responsible for the original document where necessary.

📝 Summary

How to extract tables from a PDF: the key is first to determine whether the file is a text-based PDF or a scanned image, and then choose the route of copying, exporting, or OCR. After extraction, check the rows, columns, numbers, totals, and headers item by item, so that the data is truly usable.

Open OmniDoc free extraction to convert documents into Markdown and JSON

Updated 2026-11-29