All tools
Free · Private · No upload

Convert Excel to Markdown Table Online

Copy an Excel sheet or range into a Markdown pipe table for docs, READMEs and wikis. The workbook is opened in your browser and never uploaded.

Drop a CSV or Excel file here

CSV · XLSX · XLS · XLSM · XLSB

or paste your data below

How to convert Excel to a Markdown table

Three steps from support.xlsx to a Markdown table.

1. Drop the workbook

Drop an .xlsx, .xls, .xlsm or .xlsb file, or paste cells copied from Excel.

2. Check it in the grid

Trim the sheet to the rows and columns that belong in the doc and delete the rest in the grid.

3. Pick a style

Pretty (padded columns) or compact, column alignment, optional bold header, escaping; then copy or download data.md.

Example: Excel in, Markdown out

A browser support matrix kept in Excel, with an asterisk used as a footnote marker.

support.xlsx, sheet "Browsers" (the "Sources" sheet is left out)
ABCD
1FeatureChromeFirefoxSafari
2WebGPUYesPartial*No
3View TransitionsYesNoYes
data.md (default options)
| Feature          | Chrome | Firefox   | Safari |
| :--------------- | :----- | :-------- | :----- |
| WebGPU           | Yes    | Partial\* | No     |
| View Transitions | Yes    | No        | Yes    |

The footnote asterisk in Partial* is escaped as Partial\* so it can't start italics. Cell styling (bold, fills, borders) doesn't carry over, because a Markdown table holds plain text.

What changes between Excel and Markdown

Escaping

| is always escaped as \|, and with Escape special chars ticked so are *, _ and `. Here the value Partial* is written as Partial\*. It renders as the original text; untick the option if the cells contain Markdown you want rendered.

Alignment

One setting for all columns: Left writes :---, Center :---:, Right ---:. Bold header wraps each header in **. For per-column alignment, edit the separator line by hand.

Header in row 1

Row 1 of the sheet is used as the header. Delete title rows, notes or blank rows above the real header in the grid first. A merged range keeps its value in its top-left cell only.

When to convert Excel to Markdown

Excel to Markdown in JavaScript

TabularJS reads every sheet; the snippet picks one by name. Then each row is joined with pipes.

import tabularjs from 'tabularjs';

const { worksheets } = await tabularjs('support.xlsx');
const sheet = worksheets.find((ws) => ws.worksheetName === 'Browsers');
const [header, ...rows] = sheet.data;

const cell = (v) => String(v ?? '').replace(/\|/g, '\\|').replace(/\n/g, '<br>');
const line = (cells) => '| ' + cells.map(cell).join(' | ') + ' |';
console.log([line(header), line(header.map(() => '---')),
  ...rows.map((row) => line(header.map((_, i) => row[i])))].join('\n'));

Unlike this page, TabularJS does not calculate formulas. Dates arrive as serial numbers (45414 is 2024-05-02).

npm install tabularjs MIT licensed

Frequently asked questions

Can I paste cells straight from Excel instead of uploading?

Yes. Copy a range in Excel and paste it into the box: Excel copies cells as tab-separated text, which the page reads as a table.

Is Excel's cell alignment kept?

No, alignment isn't read from the workbook. Pick Right in the Align menu for all columns, or edit the separator line (---:) for a single column.

Are formulas exported?

Their results are. The grid calculates each formula and the output uses the calculated value. If you read the file with TabularJS in code instead, formulas come back as text and are not calculated.

Why are there backslashes in my table?

Escape special chars puts a backslash before *, _ and ` so values like file_name or 2*3 don't turn into italics or code. They don't show in the rendered table. Untick the option for clean source if your data has none of these.

Does support.xlsx get uploaded when I convert it to Markdown?

No. The workbook is opened in your browser and never uploaded.