Launch offer: Pro yearly at $29
Docuflat

Feed spreadsheets to ChatGPT and Claude as Markdown tables

Updated 29 October 2026 · 3 min read

Spreadsheets are where a lot of business data lives, and asking an AI assistant to analyse them is one of the most useful things you can do. But attaching a raw .xlsx file is often slow, expensive in tokens, and sometimes misread.

Converting the sheet to a Markdown table first gives the assistant a clean, compact version it can read precisely, and lets you see exactly what it will see.

| SKU    | Product          | Rate  | Stock |
| --- | --- | --- | --- |
| WL-101 | Laminate 1mm     | 1,200 | 340   |
| WL-102 | Laminate 0.8mm   | 1,050 | 125   |

How to convert

  1. Drop your .xlsx, .xlsm, .xls, .ods or .csv file onto the converter.
  2. Each sheet becomes its own Markdown table, under a heading with the sheet name.
  3. Completely empty rows and columns are removed automatically.
  4. Copy the result, or download it as a .md file.

What the converter keeps, and what it doesn't

  • Displayed values, not formulas. A cell with =SUM(B2:B40) that shows 18,400 is written as 18,400. Dates and numbers are written in the format Excel shows them, so 03-Oct-2026 stays 03-Oct-2026.
  • Every sheet, in order. Workbooks with several sheets give several tables, each under ## Sheet: name.
  • Hidden rows and columns are included. Hiding is a display setting; the data is still in the file. Delete anything you don't want sent.
  • No colours, borders, comments or charts. If a colour carries meaning (red for overdue), add a Status column that says so in words.
  • Merged cells keep their value in the first cell only. The rest are empty.

Prepare the sheet first

A few minutes of tidying makes the AI's answers far more reliable:

  • Keep one header row. Merged cells and multi-row headers confuse every tool. Use one row of clear column names, with the units in the name: "Rate (₹)", "Weight (kg)".
  • One record per row. No blank spacer rows, no subtotals in the middle, no notes typed into the margin.
  • Delete what isn't needed. Remove helper columns, notes and sheets that aren't relevant to your question. Every cell costs tokens.
  • Use consistent units and formats. Don't mix "₹1.2L" and "120000" in one column.
  • Give codes a meaning. If a column holds codes like "WIP" or "CL", add a short key in your prompt so the AI doesn't guess.

Before and after

A typical sheet built for printing looks like this when converted as it is:

| Monthly sales report |  |  |
| --- | --- | --- |
| Region | Oct | Nov |
| East | 4,20,000 | 3,95,000 |
| Total | 4,20,000 | 3,95,000 |

The title has become the header row, and the total looks like another region. Moving the title out, keeping one header row and dropping the total row gives the AI a table it can't misread:

| Region | Oct sales (₹) | Nov sales (₹) |
| --- | --- | --- |
| East | 4,20,000 | 3,95,000 |

Ask the assistant to calculate totals itself, and compare them with your sheet: it's a quick check that it read every row.

How big is too big?

Markdown tables are compact, but a sheet with tens of thousands of rows will still be large. Docuflat shows an approximate token count for each file, roughly one token for every four characters. For very large tables:

  • Filter to the rows you actually care about (one month, one region, one customer).
  • Send a pivot table or summary instead of raw transactions.
  • Ask the AI to write a formula or a script for you rather than processing every row in the chat.

Ask better questions

Once the table is pasted, be specific:

  • "Which five SKUs had the largest drop in stock between these two sheets?"
  • "Group these invoices by customer and total them. Show your working."
  • "Check this table for duplicate invoice numbers."

Asking the assistant to show its working, or to list the rows it used, makes mistakes easy to spot. For anything that goes into accounts or a report, recheck the final figures in Excel.

Keeping the data private

The workbook is converted in your browser and never uploaded to Docuflat. Once you paste the table into an AI assistant, it is sent to that provider under its terms, so remove customer names, phone numbers and account details you don't need for the question.

More guides