Tellsheet
HomeExcel Guides › Convert Excel to Markdown, JSON, or SQL

How to Convert an Excel Table to Markdown, JSON, or SQL

Copy a block of cells into ChatGPT and it arrives as a mess. Paste it as a Markdown table or JSON and the model reads it properly — the same clean text a developer wants for code or a database.

Last updated: August 2026

Your cellsAs Markdown / JSON
Name · Age| Name | Age |
Ana · 31{ "Name": "Ana", "Age": 31 }
Bo · 24{ "Name": "Bo", "Age": 24 }

Why the format matters for AI

Large language models like ChatGPT and Claude read Markdown and JSON far better than a raw paste of spreadsheet cells, which loses its column structure the moment it lands in the chat box. Give the model a tidy table and its answers about your data get noticeably more reliable. Developers want the same thing — structured text they can drop straight into code or a database.

The manual ways

  1. Type the Markdown pipes and header separator yourself — fine for three rows, painful for thirty.
  2. Stitch cells together with =TEXTJOIN("|",TRUE,A2:C2) and build the rows one by one.
  3. Or paste into an online converter — which means sending your data to a server you don't control. For anything private, that's a real risk.

The 1-click way — Tellsheet's Export Table As

Select the range including the header row and run Export Table As. Pick Markdown table, JSON (an array of objects keyed by your headers), SQL INSERT statements (you name the table), HTML, or CSV — and copy the clean text straight from the preview. The first row becomes your keys or columns, and the whole thing runs on your computer, so nothing is uploaded. Ideal for prepping data to paste into ChatGPT or Claude. Pairs with Combine Sheets and Regex Find & Replace.

Frequently asked questions

How do I turn a table into Markdown for ChatGPT?

Select the range with its header, run Export Table As, choose Markdown, and paste the result. The columns stay aligned so the model reads it correctly.

Can I get JSON keyed by my headers?

Yes — the first row is used as the field names, and each row becomes one object in the array.

Can it write SQL INSERTs?

Pick SQL, name the target table, and Export Table As builds one INSERT per row using your headers as columns.

Does my data leave my machine?

No. Unlike online converters, Export Table As runs locally inside Excel — nothing is sent anywhere.

Related Excel guides

Export a table in one click

Export Table As turns your selection into clean Markdown, JSON, SQL, HTML, or CSV — ready to paste into ChatGPT or code, with nothing uploaded.

Get Tellsheet free See pricing