How to give ChatGPT a PDF without losing the tables
Why copied PDF tables run together, how Markdown keeps every row and column, and what to check before you paste.
By OpenAnyDoc ·
The short answer
Turn the PDF into Markdown first and paste that, not text copied straight from the PDF. A PDF stores words at positions on a page, not rows and columns, so a plain copy runs the cells of a table together; Markdown writes each row on its own line with a | between cells, which ChatGPT, Claude and Gemini read as a table. OpenAnyDoc's PDF to Markdown does this in your browser, and the file is never uploaded.
Why tables fall apart when you copy a PDF
A PDF is made for printing. Inside the file, a table is not a table: it is a set of short pieces of text, each placed at an exact spot on the page, plus some lines drawn around them. Nothing in the file says that "North" and "1,240" belong to the same row.
When you select a table and copy it, your PDF reader guesses an order and joins the pieces with spaces or line breaks. A row like Region, Units, Total can arrive as three separate lines, or as one long line where you can no longer tell which number belongs to which column. An AI chat then has to guess the layout again, and a wrong guess shows up as a total in the wrong row or a summary that mixes two columns.
Attaching the PDF to the chat does not remove the problem: the service reads the text out of the file in its own way, and you cannot see what it read before it answers. It also sends the whole file to that service, including pages you did not need to share.
Why Markdown keeps rows and columns
Markdown is plain text with a few marks for structure. A table is written row by row, with a | between cells and a line of dashes under the header, for example:
- | Region | Units | Total |
- |---|---|---|
- | North | 120 | 1,240 |
Rows and columns you can check
Every AI chat that reads Markdown understands this layout, and so can you: the cells are in plain sight, so you can check them before you send anything. Headings marked with # and lists marked with - travel the same way, which helps the chat tell a section title from the text under it.
How to do it, step by step
PDF to Markdown runs on your computer or phone, and nothing is sent to a server or to an AI service:
- Open PDF to Markdown and choose your PDF, or drop it on the page.
- Click Convert to Markdown. Text clearly larger than the body becomes #, ## or ### headings, bulleted and numbered lines become lists, and three or more lines in a row that are split into the same number of columns become a Markdown table.
- Read the result in the text box. Look at each table and check a few numbers against the PDF.
- Click Copy and paste it into the chat, or download it as .md, .txt or .html. The token count under the result tells you how much of the chat it will use.
When the table still comes out wrong
Tables are found from how the text lines up, so some PDFs need help:
- The result is empty: the PDF is probably scanned, so its pages are pictures with no text. Run OCR PDF first, then convert the new file. Text recognition reads tables as lines of words, so check those tables closely.
- Merged cells, cells that wrap onto a second line or empty cells can break a table into plain lines of text.
- Pages laid out in two columns may need a check of the reading order.
- Pictures and charts are left out; only the text is converted.
For a large or messy table
If one big table is what you need, PDF to Excel puts each page in its own sheet, where you can fix a misplaced cell by hand. Then Excel to Markdown turns the sheet you pick into a clean Markdown table to paste.
Check these before you paste
A few minutes here saves sharing more than you meant to:
- Personal data: names, email addresses, phone numbers and ID numbers. Mask data replaces them on your device; it reads plain text files, so rename the downloaded .md file to .txt and open it there.
- Length: if the token count is high, paste only the pages or the table you need. The guide to how many tokens your PDF uses explains the numbers.
- Your own rules: if the PDF is a work document, follow your organisation's rules on which AI services may see it.
Questions?
Write to support@openanydoc.com and describe the table that did not come out right (no personal data).