Table OCR

Turn a photo or screenshot of a table into a CSV of rows and columns you can open in a spreadsheet.

or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.

Downloads a small public example. Your own files are not used.

Row grouping tolerance12px
Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To extract a table from an image, drop a screenshot or photo of it here and press Read the table. Tesseract reads every word in your browser, never uploading the file, then groups words into rows by height and into columns by the gaps between them. You get a CSV that opens in Excel, Numbers or Google Sheets.

A worked example

See a real input and result

This synthetic sample produced 1 output file from 1 input file. These are synthetic demonstration files, not someone’s documents.

Input sample

Input sample: input-1-table-scan.jpg

Actual output

Input count
1
Output count
1
Rows read
3
Confidence
90%
Input 1 dimensions
1100 × 520 px
Recognized text 1
Item,Cost Coffee,4.20 Bagel,3.10
Input bytes
25562
Downloadable output bytes
32

Settings used: tolerance: 20

This synthetic sample only; results depend on the input. Columns are inferred from the gaps between words, so a table with tight spacing or merged cells will need checking. Ruled lines are not detected. Proofread recognized text and numbers before use.

Ran through this tool on . Use “Try sample files” above to run it yourself.

How to convert a table image to CSV or Excel

  1. STEP 1

    Capture the table

    A screenshot is ideal. For a photo, shoot straight on so rows stay horizontal, and crop to the table alone.

  2. STEP 2

    Add the image

    Choose a single JPG, PNG, WebP, HEIC or TIFF. One table image is read per run.

  3. STEP 3

    Adjust Row grouping tolerance

    Leave it at 12 px to start. Raise it if one row is split in two; lower it if two rows are merged.

  4. STEP 4

    Press Read the table

    Check the rows-read count and confidence, preview the CSV, then save it and open it in your spreadsheet.

Why a table in an image needs rebuilding

An image of a table is just text that happens to be lined up. Plain OCR reads it left to right as lines of words and throws the column structure away, which is why pasting OCR output into a spreadsheet usually puts a whole row in one cell.

Table OCR adds a second step: it uses where each word sits on the image to decide which row and column it belongs to. That works well for clean, evenly spaced tables and gets harder with merged cells, wrapped text and tight columns.

What survives, and what does not

After a greyscale contrast boost, tesseract.js returns every word with its bounding box. Words whose top edge is within the Row grouping tolerance of each other become one row. Inside a row, a gap wider than about one character height starts a new cell, and closer words are joined with a space. Ruled lines are not used at all, so the layout is inferred purely from spacing.

What you keep

Row order from top to bottom

Multi-word cells, when the words are closer together than the column gap

Quotes and commas inside cells, escaped properly for CSV

What you lose

Merged cells and cells with wrapped text, which split or shift columns

Empty cells: a blank does not produce a placeholder, so later values move left

Gridlines, shading and formatting

More than one image at a time

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Table OCR at a glance

InputOne image: JPG, PNG, WebP, HEIC, TIFF
OutputCSV
OptionRow grouping tolerance, 4 to 40 px
LanguageEnglish
Enginetesseract.js plus spacing-based layout
First-use downloadAbout 7 MB, cached afterwards

If something goes wrong

Each row is split across two lines in the CSV

The words in the row sit at slightly different heights, often in a tilted photo. Raise Row grouping tolerance, or straighten and crop the image first.

Values have shifted into the wrong column

An empty cell or merged heading has thrown the count off. Fix it in the spreadsheet, or crop away the header and read the body on its own.

Two columns are stuck together in one cell

The gap between them is narrower than one character height. A higher-resolution screenshot usually separates them.

Table OCR questions

Can I convert a picture of a table to Excel?

Yes, by way of CSV. Save the CSV this tool produces and open it in Excel, which reads it as a sheet; use Save As to keep it as .xlsx. Numbers and Google Sheets open it the same way.

Is the table image uploaded?

No. Recognition and the row and column reconstruction both run in your browser, so a screenshot of a payroll sheet or bank table stays on your device.

Does it detect table borders?

No. Columns are worked out from the spacing between words, not from ruled lines. That means borderless tables work just as well as boxed ones, but merged or empty cells need checking.

How accurate is table OCR?

On a crisp screenshot of a simple table, most cells land in the right place first time. Photos of printed pages, small text and complex headers need more correction. The confidence score and the preview let you judge before you rely on it.

Can I extract a table from a PDF instead?

If the PDF has real text, use Extract tables from PDF, which reads text positions directly without OCR. If it is a scan, take a screenshot of the table and use this tool.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/table-ocr
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy