Excel (.xlsx/.csv) to Markdown tables
ai_xlsx_to_markdownConvert Excel .xlsx or .csv files into Markdown tables, one section per sheet or a named sheet, with clean headers, ISO dates, and links preserved.
Instructions
Turn an Excel .xlsx workbook (or a .csv/.tsv file) into Markdown tables, one "## sheet" section per sheet, or only the sheet you name. The first used row is the table header; empty rows and columns around the data are dropped. Formulas show their cached result (as last saved by Excel), dates are ISO (2026-10-30, or 2026-10-30T14:05:00), merged cells show their value once, hyperlinks become Markdown links. Each sheet shows at most maxRows data rows (default 200) and says how many were left out. Old binary .xls is not supported. Accepts a local path or base64. Runs locally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The .xlsx or .csv file: a local file path (absolute, or relative to the server's --root) or base64 data (raw or a data: URI). | |
| sheet | No | Only this sheet: its name, or its 1-based position (e.g. "2"). Default: every sheet. | |
| format | No | Input format. "auto" tells .xlsx (a ZIP) from CSV by its bytes. | auto |
| output | No | Write the Markdown to this file (or folder ending in "/") and return its path instead of the inline text. | |
| maxRows | No | Data rows to show per sheet (after the header). Default 200. | |
| maxChars | No | Cut the inline Markdown after this many characters, with a note (a file written with "output" is never cut). Default 200000. |