Extract tables
Copy the tables in a PDF, a scan or a photo into Excel, CSV or JSON.
Drop PDF, JPG, PNG, TIFF, HEIC or WebP files here
Needs our servers. You confirm before anything is uploaded.
Deleted 60 minutes after you download it.
Statements, invoices, price lists and reports keep their figures in tables. Extract tables copies just those tables into cells you can sort and sum, as an Excel workbook, as CSV files or as JSON for your own code, and leaves the rest of the page behind. It reads scans and photos of pages too. On plans with credits, only the pages that hold a table count, and a file with no table costs nothing. It runs on our servers with our own engine, so no other service sees your file.
About the formats
PDFPDF document
PDF is the standard format for documents that should look the same everywhere. It can hold text, images and vector graphics across many pages.
JPGJPEG image
JPG (or JPEG) is the most widely supported photo format. Its lossy compression keeps files small, which suits photos but not sharp text or transparency.
PNGPNG image
PNG is a lossless image format with transparency. It’s ideal for screenshots, logos and graphics with sharp edges, but photos come out larger than JPG.
TIFFTIFF image
TIFF is a high-quality image format used for scanning, printing and archiving. One file can hold several pages, and files are usually large.
HEICHEIC image
HEIC (HEIF) is the photo format iPhones and iPads use. It keeps high quality at about half the size of JPG, but many Windows apps and websites can’t open it.
WebPWebP image
WebP is an image format made for the web. Files are smaller than JPG and PNG and can have transparency or animation, but some older apps can’t open it.
XLSXExcel workbook
XLSX is the workbook format of Microsoft Excel since 2007: sheets of cells with formulas, formatting and charts.
CSVCSV file
CSV stores a table as plain text, one row per line with commas between the values. Spreadsheets, databases and almost every data tool can read and write it.
JSONJSON file
JSON is the text format web APIs and apps use to exchange data: objects, lists, text, numbers and true or false values, nested as deep as needed.
Converted with PDF to Office engine (Stirling Office Convert).
Questions
What do I get?
Only the tables, as an Excel workbook with a sheet for each table, a CSV file for each table, or one JSON file listing every table with its rows and the pages it covers. In the workbook, amounts, percentages and dates are numbers you can sum and sort; CSV and JSON keep each cell’s text as the page prints it. Headings, paragraphs and pictures around the tables are left out, and PDF to Excel keeps them.
What about a table that runs over several pages?
It stays one table, without its header row repeated, and the JSON gives the first and last page it covers. When a file has several tables, each CSV file’s name says which pages its table is on.
Can it read scans and photos of pages?
Yes. A scanned PDF, or a JPG, PNG, TIFF, HEIC or WebP picture of a page, is read with OCR first, then its tables are found. For a photo, lay the page flat in even light and let it fill the frame. Korean can’t be read yet.
Does it work on forms?
It’s made for tables, the rows and columns of figures or words in statements, invoices, price lists and reports. A form’s boxes come out as a grid of cells, which is rarely what you want, so convert a form with PDF to Word instead.
Is my file uploaded?
Yes. Finding the tables needs our servers, so the page asks before uploading and says where the file is processed. Your file is deleted as soon as the tables are ready, and the tables soon after you download them; the notice gives the exact time.
Extract tables with the API
Convert from your code with one request. See the Extract tables API
curl "https://api.formatjet.com/v1/convert?conversion=extract-tables" \
-H "Authorization: Bearer $FORMATJET_API_KEY" \
-H "Accept: application/json" \
-F file=@input.pdf