LocalExcelTool
Get started

CSV to Markdown table

Turn CSV into a Markdown table with the first row as header — first 500 rows, no upload.

Runs in your browserNo account neededFree

What is CSV to Markdown table

CSV to Markdown conversion uses the first row as the header and the rest as body rows joined by pipes. Pipes inside cells are escaped and line breaks collapse to spaces so the table never collapses. Output stops at 500 rows because Markdown tables stop being usable beyond that.

File

No file chosen

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

The fastest path from a spreadsheet to a document

Copy a range out of Excel, paste it as CSV, convert it to a Markdown table, and you have a table that renders on GitHub, in Notion, in a wiki and in most chat tools without anyone installing anything.

The first row becomes the header and a separator line is inserted after it. Cell contents are trimmed, pipes are escaped, and embedded newlines collapse to spaces so every row stays on one line.

Numbers are left as they are — no thousands separators are added, because Markdown tables do not align numbers and adding separators would make the values harder to copy back out.

Limits worth knowing before you paste

Alignment is not preserved from the source. A Markdown table can be left, centre or right aligned per column, but the converter does not guess; add colons to the separator row yourself if alignment matters.

Merged cells cannot be expressed. A merged header becomes an empty cell, so the header row may look incomplete after conversion. Unmerge and fill the value into each column before converting, otherwise the reader sees a table whose first row has holes in it.

Tables wider than the reader's screen become horizontal scroll. If the audience is on mobile, consider splitting the table or linking to a file: a five-column table in a README is readable on a laptop and unusable on a phone, and the reader will not tell you which one they used.

How to use it

  1. 1.Paste CSV or choose a .csv file
  2. 2.Click Run
  3. 3.Copy the Markdown

How CSV to Markdown table works under the hood

An .xlsx file is not a table — it is a ZIP archive of XML parts. Everything you see as a grid is rebuilt from cell references on this page, in memory, without a round trip to a server.

  1. 1

    Read the file as bytes

    The file is read into an ArrayBuffer with the File API. This is a local read, not a request — nothing leaves the tab.

  2. 2

    Unzip and parse the workbook

    SheetJS inflates the archive, reads workbook.xml for sheet order, sharedStrings.xml for text, and each sheet's XML for cells and types.

  3. 3

    Rebuild rows in memory

    Cells are placed by their A1 reference, gaps become empty cells, and the sheet is materialised as a two-dimensional array.

  4. 4

    Write the output locally

    The result is serialised to CSV text or a new workbook and handed to the browser as a Blob download.

  5. Processing pipeline

Why formulas arrive as values

A spreadsheet stores two things per formula cell: the formula text, and the value Excel last computed and cached. A browser parser reads the cached value. Making the formula itself run would mean reimplementing Excel's calculation engine — including volatile functions, circular-reference detection and locale-specific parsing. So the exported CSV contains what you last saw on screen, not a live formula.

What has no CSV equivalent

Merged cells, cell fills, fonts, conditional formatting, comments and pivot tables have no representation in a comma-separated file. A merged cell becomes its value in the top-left position and empty cells elsewhere. Dates are written as dates only when the cell is typed as a date; a date stored as text stays text. These are format limits, not bugs.

Where it gets slow

Parsing is linear in cell count, and the browser holds the whole workbook in memory. A 30 MB file with a million populated cells can take several seconds and a few hundred MB of RAM; the tab may feel frozen while SheetJS works. Splitting the file by sheet, or exporting only the range you need, is faster than retrying with a bigger limit.

Verify it yourself

You do not have to take this on faith. Run the tool once with DevTools open.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

Why only 500 rows?

Markdown tables get unreadable as they grow and wrap badly on GitHub. Use JSON or SQL when you need every row.

Can I choose the delimiter?

It is detected: whichever of comma, semicolon or tab appears most often in the first line wins.

Can I convert without a header row?

Markdown tables require a header, so the first row is always treated as one. Rewrite it afterwards if you do not want real headings.

What this kind of conversion cannot keep

Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.

More in Spreadsheets & Docs