# Excel to Markdown table converter

> Open an Excel .xlsx workbook and every visible worksheet becomes a GitHub-flavored Markdown table under its own heading, converted entirely in your browser.

Source: https://markdownlens.ayushdev.com/excel-to-markdown · Updated 2026-11-12 · Markdown Lens, free and open source: https://github.com/ayushhagarwal/markdown-lens

The converter reads the XLSX package directly, keeps worksheet order, resolves shared text values, leaves blank cells blank, and excludes hidden sheets by default.

Open the converter: https://markdownlens.ayushdev.com/excel-to-markdown (drop a XLSX file on the page; it is processed in your browser and not uploaded).

## Steps

1. Choose a modern .xlsx workbook.
2. Markdown Lens converts each visible sheet locally.
3. Review wide tables and export the resulting document.

## Example: an Excel sheet converted to a Markdown table

Input: `budget.xlsx` (Worksheet “Q1”)

- `Item | Owner | Cost`
- `Hosting | Ana | 120`
- `Design tools | Sam | 45`

Markdown output:

```markdown
# budget

## Q1

| Item | Owner | Cost |
| --- | --- | --- |
| Hosting | Ana | 120 |
| Design tools | Sam | 45 |
```

The first row becomes the table header. Each additional visible worksheet gets its own ## heading and table.

## What the converter preserves

- Visible worksheet names and order
- Rows, columns, blank cells, and cached values
- One Markdown section per worksheet
- Wide tables with horizontal preview scrolling

## Limitations

- Formatting, macros, charts, and pivot-table behavior are not reproduced.
- Formula output uses the value cached in the workbook.
- Merged cells are not represented, because Markdown tables cannot merge cells.
- Legacy .xls files require export to .xlsx.

## How to convert an Excel spreadsheet to a Markdown table

1. Save the workbook as .xlsx (in Excel: File → Save As → Excel Workbook).
2. Drop the file on this page or choose “Open or convert XLSX”.
3. Review each sheet’s table in the preview. Add colons to the divider row if you want right-aligned numbers, for example | --- | ---: |.
4. Copy the Markdown or download it as a .md file.

## Excel or CSV: which should you convert?

Convert the .xlsx directly when the workbook has several sheets, since each becomes its own section. If you only need one range, exporting it as CSV first and using the CSV to Markdown converter gives you the same table with fewer columns to clean up.

- [CSV to Markdown table converter](https://markdownlens.ayushdev.com/csv-to-markdown)

## Frequently asked questions

### Are hidden worksheets converted?

No. Hidden worksheets are excluded by default to avoid exposing unintended content.

### Does it calculate formulas?

No. It reads cached workbook values and does not execute spreadsheet formulas.

### Is my spreadsheet uploaded?

No. The workbook is read and converted in your browser.

### Can I convert Google Sheets to Markdown?

Yes. Choose File → Download → Microsoft Excel (.xlsx) in Google Sheets, then open the file here.

## Related

- [CSV to Markdown converter](https://markdownlens.ayushdev.com/csv-to-markdown): Turn comma- or tab-separated files into GitHub-flavored tables.
- [JSON to Markdown converter](https://markdownlens.ayushdev.com/json-to-markdown): Pretty-print JSON locally as a fenced Markdown code block.
