CSV to Markdown Table Converter
Paste CSV or cells from Excel and Google Sheets, or open a CSV, XLSX or ODS file, and get a clean Markdown table for GitHub, docs or an AI prompt. Nothing is uploaded.
Your data
Paste, drop a file here (CSV, TSV, XLSX, XLS, ODS, Numbers) or open one. Nothing is uploaded.
Options
Markdown table
- ChatGPT tokens
- ≈ 0
- Claude tokens
- ≈ 0
- Gemini tokens
- ≈ 0
Token counts are estimates, not exact. How they're estimated
Split into parts for a chat
For long documents: each part fits one message and keeps headings, tables and code blocks whole. A table that has to be split repeats its header row in every part.
Why turn a spreadsheet into a Markdown table?
Pasting spreadsheet cells into a README, a GitHub issue or a wiki gives you a wall of tabs or a screenshot nobody can search or edit. A Markdown table renders properly on GitHub, GitLab, Notion imports, Obsidian and static sites, and it's plain text an AI model reads reliably: every column named once, every row on its own line, no hidden formatting.
How to convert CSV or Excel to a Markdown table
- Paste CSV or copied cells into the box, or open or drop a .csv, .xlsx, .xls, .ods or Numbers file.
- For a workbook, pick a sheet, or All sheets for every sheet at once.
- Set the header row, alignment and whether to line up the columns.
- Press Copy or Download .md; open Preview to see the table rendered.
Markdown table syntax in one minute
A Markdown table is rows of cells separated by pipes |. The first row is the header and the second row, made of dashes, separates it from the data. The CSV below has a comma inside quotes, a pipe in a product name and a line break inside a cell:
Product,Units,Price,Notes
Notebook,120,4.50,"Ruled, A5"
Pen | blue,300,1.20,
Stapler,15,12.00,"Back order
due 3 May"It converts to:
| Product | Units | Price | Notes |
| --- | --: | --: | --- |
| Notebook | 120 | 4.50 | Ruled, A5 |
| Pen \| blue | 300 | 1.20 | |
| Stapler | 15 | 12.00 | Back order<br>due 3 May |The quoted comma stays inside its cell, the pipe is escaped as \| so it doesn't start a new column, and the line break becomes <br>. Units and Price contain only numbers, so Auto alignment right-aligns them with --:.
Aligning columns
Colons in the separator row set each column's alignment when the table is rendered. The converter writes them for you:
| Alignment | Separator | Good for |
|---|---|---|
| Left | :--- | Text columns (the default look) |
| Centre | :---: | Short labels, ticks, status words |
| Right | ---: | Numbers, so the digits line up |
| None | --- | Let the renderer decide (usually left) |
Line up columns pads every cell with spaces so the table also reads as a neat grid in a plain-text editor, a code review or an email. It changes nothing once rendered. Leave it off when every character counts, as in an AI prompt.
Spreadsheets: sheets, merged cells and hidden data
- Several sheets. Pick one from the list, or All sheets to get each sheet as its own table under a heading with the sheet name. Empty sheets are skipped.
- Merged cells. A merged range is filled with its value in every cell it covered, so a region name merged down five rows appears on all five. Untick Fill merged cells to leave the extra cells blank.
- Hidden rows and columns are included by default, since their data is still in the file. Tick Leave out hidden rows & columns to convert only what's visible in Excel.
- Formulas and formats. Cells show what Excel displays: a formula's last result, dates and currencies as formatted. A CSV keeps every cell exactly as written, leading zeros included.
- Blank rows and columns left over from formatting are dropped with Skip empty rows & columns, so stray formatting far below the data doesn't produce a table of empty cells.
Tables for ChatGPT, Claude and Gemini
Models read Markdown tables well, and a table names each column once instead of repeating field names on every row. Check the token estimate under the result. For a big export, Split into parts cuts the table into chat-sized parts and repeats the header row at the top of each, so every part is a complete table the model can read without the others. For very large or deeply structured data, CSV or JSON may suit better: the CSV to JSON converter and the Spreadsheet Converter handle those, and JSON/XML to Readable Text flattens JSON for prompts.
Working on a document rather than a sheet? DOCX to Markdown converts Word files, tables included. To tidy the rest of a Markdown file, use the Markdown Cleaner or edit it with a live preview in the Markdown Editor.
How the token estimates work
Tables are number-heavy, so they use more tokens per character than prose: digits, pipes and short cells each count.Chat models read text as tokens: whole words, pieces of longer words, numbers and punctuation. Each model family splits text its own way, so one document has a different count in ChatGPT, Claude and Gemini. The counts here are worked out in your browser, without sending the text anywhere:
- ChatGPT: the text is cut up with the same splitting rules as OpenAI's o200k tokenizer (used by GPT-4o and later models), and each piece is costed from statistics measured on that tokenizer. In our tests it came within about 5% of the real count for English prose, Markdown and code; for JSON, HTML and some languages it can be 10–30% off.
- Gemini: calibrated the same way against the tokenizer Google released with its open Gemma 3 models, which Google's Gemma 3 report describes as the one Gemini 2.0 uses. It splits every digit into its own token, so tables and numbers cost noticeably more than the usual "about 4 characters per token" rule of thumb suggests. In our tests it was within about 10% for English text, code and data.
- Claude: Anthropic doesn't publish its tokenizer, so this is the roughest of the three. Claude typically counts 15–20% more tokens than OpenAI's tokenizer for English and more for code, numbers and non-Latin scripts; the estimate applies those ratios to the ChatGPT figure. The newest Claude models can count somewhat more again.
Treat them as planning numbers: good for "will this fit?" and for splitting, not for billing. When you split a document into parts, choose a part size with some headroom below your model's limit, and remember that your own question and the AI's answer use tokens too.
Frequently Asked Questions
How do I convert a CSV file to a Markdown table?
Paste the CSV into the box, or drop or open the .csv file. The Markdown table appears straight away: the first row becomes the header, and pipes and line breaks inside cells are escaped so the table can't break. Press Copy or Download .md.
Can I paste cells straight from Excel or Google Sheets?
Yes. Select the cells, copy them, and paste into the box. Spreadsheets copy cells as tab-separated text, which is detected automatically, so you get a Markdown table without saving a file first.
How do I convert an Excel workbook with several sheets?
Open the .xlsx (or .xls, .xlsb, .ods or Numbers) file and pick a sheet from the Sheet list, or choose "All sheets" to get every sheet as its own table under a ## heading with the sheet's name. Empty sheets are skipped.
What happens to merged cells?
Markdown tables can't merge cells. With "Fill merged cells" ticked (the default), the merged value is repeated in every cell the merge covered, so each row reads correctly on its own. Untick it to keep the value only in the first cell and leave the rest empty.
How do I align columns in a Markdown table?
Alignment is set by colons in the separator row under the header: :--- for left, :---: for centre and ---: for right. The Alignment option sets it for you; "Auto" right-aligns columns that contain only numbers. Tick "Line up columns" to pad the cells so the table is also tidy as plain text.
What if a cell contains a | or a line break?
A pipe would end the cell early, so it's written as \| (and a backslash just before a pipe is doubled so the pipe stays escaped). A line break inside a cell becomes <br>, which GitHub and most Markdown editors show as a line break within the cell.
Can I reformat or fix an existing Markdown table?
Yes. Paste a Markdown table and it is recognised as one: you can change the alignment, line the columns up, drop empty columns or switch between compact and padded output, and copy the cleaned-up version.
Are formulas, dates and number formats kept?
Each cell shows the value as the spreadsheet displays it: a formula gives its last calculated result, and dates, currencies and percentages keep their formatting (for example 14/03/2026 or $1,200.00). Cells in a CSV are kept exactly as written, including leading zeros.
Which delimiters and encodings are supported?
Comma, semicolon, tab and pipe are detected automatically, and an Excel "sep=;" first line is honoured; you can also pick the delimiter yourself. Text files can be UTF-8 (with or without a byte-order mark), UTF-16 (Excel's "Unicode Text" export) or older Windows-1252 exports, so accented and non-Latin text comes through intact.
Is a Markdown table a good format for ChatGPT or Claude?
Yes for small and medium tables: models read pipe tables well, and each column name appears only once. The result card estimates the tokens. For a large table, "Split into parts" cuts it into chat-sized pieces and repeats the header row in every part, so each part is a complete table.
Is my data uploaded anywhere?
No. Pasted text and opened files are parsed in your browser tab; nothing is sent to a server. Your option choices are remembered in this browser, but your data isn't stored.
Related tools
More free, private, browser-based utilities — no upload, no sign-up.