tools / ai-table
ai-table/
Paste the whole AI answer; the tables in it are picked out automatically and converted to Excel or CSV. Several tables are fine, one sheet per table.
Input
Result
What is a Markdown table
A Markdown table separates cells with vertical bars |, and the header row is followed directly by a separator row made of hyphens. This page picks every Markdown, HTML, tab-separated and CSV table out of a whole AI answer and turns it into Excel (.xlsx) or CSV quoted according to RFC 4180.
How it works: both the Excel file and the CSV are built in the browser
The Excel file uses the Office Open XML format: this page writes each table as the XML of one worksheet and packs it, with a few description files, into a stored, uncompressed ZIP with the .xlsx extension. An Excel worksheet holds at most 16384 columns; beyond that the page shows a warning.
CSV is written according to RFC 4180: comma-separated, with CRLF between lines; a field containing a comma, a double quote or a line break is wrapped in double quotes, and double quotes inside it are doubled. This page also quotes fields that contain a semicolon or a tab, and the downloaded CSV file starts with a UTF-8 BOM so that Excel opens it without garbled characters.
Example
say "hi" contains double quotes, so the whole cell is quoted and the quotes are doubled; 1,5 contains a comma and is quoted too; =1+1 starts with an equals sign and gets a leading apostrophe so it is not treated as a formula. The line breaks in the output are actually CRLF.
- Input
| a | b | |---|---| | say "hi" | 1,5 | | =1+1 | -5 |
- Output
a,b "say ""hi""","1,5" '=1+1,-5
Sources
FAQ
How to turn a table in a ChatGPT or Claude answer into Excel
Click the copy button under the answer, or select the table on the web page and copy it, paste it on the left, then click “Download Excel”. There is no need to delete the surrounding text: Markdown tables, HTML tables and tab-separated text of two or more lines are picked out of the body. With auto-detect, only code blocks with no language or marked markdown, text, html, csv or tsv are searched. Only when none of these is found does it look for CSV-like paragraphs. If detection is wrong, set the format above.
Why a table pasted from a web page turns into HTML code
When the clipboard holds a rich-text table, the input box gets a slimmed-down HTML copy that keeps only the table structure and text, so merged cells and line breaks inside cells are not lost and you can edit it directly; the heading right before the table is carried along, other body text is not. Merged cells are unmerged, with the content in the top-left cell and the rest left empty. If the plain text is already a Markdown table, the text is pasted as usual; it is also not replaced when the Markdown or CSV format is selected.
Will Excel change ID numbers, leading zeros and dates
Not in the Excel file. Leading zeros, integers of 11 or more digits, numbers with more than 15 significant digits, dates written run together like 20240131, and forms like 2024-01-31 and 1/2 are all stored as text. If a column has leading zeros, long numbers or run-together dates, the integers in that column without thousands separators are also stored as text. CSV is plain text and Excel converts it on its own when opening, so download the Excel file to keep these intact.
Which values are stored as numbers, and how are 1,234 and 1.234 treated
Integers, decimals, numbers with thousands separators and percentages are stored as numbers; decimal places (up to 10) and the percent sign are kept through the cell format. Where a header is recognized, the header row is always text; CSV and tab-separated input do not distinguish a header. For values like 1,234 and 1.234 that can be read two ways, auto mode looks at the same column: if it has 1,234.50 or 2.5, English notation is used; if it has 1.234,50, European notation; if neither shows, the value stays text and a notice appears. A comma decimal like 12,5 mostly stays text in auto mode; you can pick the notation directly under “Numbers”. Values with currency symbols, units or a plus sign, and IP addresses, are always text; something like 1.234.567 with only dots also stays text in auto mode when there is nothing else to go on.
What the notice about too few columns means
If a row has a few cells fewer than the widest row, the missing ones are filled with empty cells. A row longer than the header loses nothing; empty cells are added on the header side. A blank line in the middle of a table, or one extra separator line, still counts as the same table. The usual cause is an unescaped pipe inside a cell; in Markdown write it as \|. A pipe inside backticks that is not escaped is split in whichever way comes closer to the header's column count.
What happens to bold, links and <br>
In Markdown tables, bold, italic, strikethrough and code marks are removed and only the text stays; links keep the text and drop the URL, images keep their alt text; <br> becomes a line break inside the cell, and superscript and subscript digits are replaced with characters like ⁶ and ₂. Symbols that have a letter or digit touching both sides are left alone, such as 2**10, a*b*c, snake_case; runs of four or more asterisks or underscores are also left alone, such as the masked 138****1234. To keep everything as is, untick “Strip Markdown formatting”; then only <br> is converted and \| is restored.
If a cell starts with an equals sign, will it run as a formula
Not in the Excel file: text starting with = + - @ is always written as a text cell, and the file contains no formulas. CSV and “Copy table” have no cell types, so by default a single quote is put in front of such content; numbers like -5 and +3.2%, and a lone hyphen, do not get one. If you trust the content and do not want the single quote, untick “Block formulas in CSV and copy”.
How much can be converted at once, and is the content uploaded
No, nothing is uploaded: parsing and file generation all happen in the browser. At most 5 million characters, 500 tables and 300,000 cells in total per run, and at most 32767 characters per cell; anything beyond that is reported, never silently truncated. The preview shows only the first 20 tables, each with its first 100 rows and 30 columns; the Excel file is complete. A sheet name comes from the HTML table's caption or from the heading before the table (in Markdown, at most two lines of text in between), up to 31 characters; with no heading, sheets are numbered in order.