Skip to content

How to paste a web table into ChatGPT or Claude without breaking it

By Andrii Boiko · 2026-10-23 · 4 min

Paste a table from a web page into an AI chat and the columns often collapse into a line of text. The assistant then answers about the wrong cells — or invents a structure. The fix is simple: give it a Markdown table.

Why plain paste fails

Browsers copy visual layout, not structure. When the destination is a plain text box, cell boundaries are lost, merged cells repeat or disappear, and images and icons turn into noise. Long tables also waste space on whitespace and link URLs.

Why Markdown works

A Markdown table is plain text with pipes and a header separator:

| Country | Population | Year |
|---|---|---|
| India | 1,428,627,663 | 2023 |
| China | 1,425,671,352 | 2023 |

It keeps the link between each header and its cells, it stays readable even if the chat shows it as raw text, and it is a format that assistants handle well.

Three ways to get a clean Markdown table

  1. Through a spreadsheet. Paste into Google Sheets, then ask the model (or use an add-on) to convert it. It works, but adds steps.
  2. By hand. Fine for a 5×3 table, impractical beyond that.
  3. Directly from the page. A browser extension that copies a web table as Markdown. With CleanTable: right-click the table → Copy as Markdown (ChatGPT / Claude), or press Alt+Shift+M, then paste into the chat.

Tips for better answers

  • Copy only the columns you need (the CleanTable popup lets you exclude columns).
  • Tell the model: “The first row is the header.”
  • For big tables, ask for a summary or a filter first, then drill down.
  • Keep the source: Pro’s AI profile adds a Context: line with the source URL and date and trims to 200 rows.

Add CleanTable to Chrome — free

Related

Copy your next table the clean way

Free for single tables, no row limit, no account. Pro is a one-time payment.

Add to Chrome — it’s free