Excel to Markdown Table Generator
This excel to markdown table generator turns cells copied from Excel, Google Sheets or a CSV file into Markdown, HTML or LaTeX table code, with alignment and escaping handled for you.
- Free to use
- No account required
- Instant results
- Private: runs in your browser
Your table
Limits: pasted text up to 5 MB, files up to 50 MB, 200 columns. Everything runs in your browser; nothing is uploaded.
Options
Result
Your data: Files and text are processed locally in your browser. Nothing you load here is uploaded to our servers.
How to use
- Copy a range in Excel or Google Sheets and paste it into the box, or choose an .xlsx, .csv or .tsv file.
- Pick the output format: Markdown, HTML or LaTeX.
- Leave "First row is the header" on if your first row holds column names, and type a range such as B2:E20 if you only want part of the sheet.
- Set the alignment. Auto puts text on the left and numbers on the right; you can override any single column.
- Check the Preview tab, then copy the code or download it as a .md, .html or .tex file.
Examples
Markdown for a GitHub README. Three cells pasted from a sheet, one containing a pipe:
Item Qty Price
Apple | Granny Smith 3 $0.50
Pear 12 $1.25The tool returns:
| Item | Qty | Price |
| :-------------------- | --: | ----: |
| Apple \| Granny Smith | 3 | $0.50 |
| Pear | 12 | $1.25 |The pipe is escaped as \| so the row does not split, and Qty and Price are right-aligned because every value in them is a number.
LaTeX for a paper. Cells containing R&D share, 12.5%, Cost_center and #4 become:
\textbf{Metric} & \textbf{Value} \\
\midrule
R\&D share & 12.5\% \\
Cost\_center & \#4 \\wrapped in table and tabular environments with booktabs rules and a label you can reference.
HTML for a blog. With a caption of "Stadiums", the cell AT&T Park is written as <td>AT&T Park</td> inside <thead> and <tbody> sections, and the number column gets style="text-align: right".
Tips and limits
- Pasted data from Excel and Google Sheets is tab separated, and the tool detects that without asking. Comma, semicolon and pipe separated text also works.
- A cell with a line break becomes
<br>in Markdown and HTML. LaTeXtabularcells cannot hold line breaks, so they become spaces and the tool tells you. - Markdown tables always need a header row. If your data has none, an empty header row is added and a note explains why.
- For .xlsx files the tool reads every sheet and lets you choose one. Old .xls files (Excel 97–2003) are not supported; save them as .xlsx or CSV first.
- Formulas are not recalculated: the tool uses the value Excel saved in the file. Merged cells, colours and fonts are not carried over.
- Limits: pasted text up to 5 MB, files up to 50 MB, and up to 200 columns. Large files are read in a background worker with a progress bar and a Cancel button. The code box shows the first 200,000 characters; Copy and Download always give you the full result.
- The booktabs style needs
\usepackage{booktabs}in your preamble. Untick the option to use plain\hlinerules instead.
FAQ
How do I paste an Excel table into GitHub?
Select the cells in Excel, copy them, paste them here with Markdown selected and click Copy code. Paste the result into your README, issue or pull request; GitHub renders it as a table.
How do I make a LaTeX table from Excel?
Choose LaTeX, paste your cells or upload the workbook, and add a caption and label. Special characters such as &, %, $, #, _ and ~ are escaped, so the code compiles as it is.
Can I choose column alignment?
Yes. Pick a default (left, center, right, or Auto, which right-aligns number columns) and then change any single column under "Alignment per column".
Does it keep bold text or cell colours?
No. It copies the cell values only. You can make the header row bold in LaTeX; in Markdown and HTML, header cells are styled by the page that shows them.
Why does my number column stay left-aligned?
Auto only right-aligns a column when every non-empty cell in it is a number. A single "n/a" or "12 pcs" keeps the column left-aligned. Set that column to Right to override it.
Can I convert only part of a sheet?
Yes. Type a range such as A1:D20 in the range field. Rows and columns are counted the same way as in Excel.
Privacy note
Your table never leaves your device. Pasted text and files are read and converted by JavaScript running in your browser tab, and nothing is sent to our servers or anyone else. Nothing is stored either: when you close or reload the page, the data is gone.
Guides for this tool
Document & Text IntelligenceConvert Word DOCX to Markdown With Images
How to convert a Word .docx file to clean Markdown: image handling in a ZIP or inline, the report of what changed, and what Markdown cannot carry over.
4 min read
Data Cleaning & File ConvertersMarkdown Table Breaks on a Pipe Character
Why a pipe character splits a Markdown table cell, how \| fixes it, how line breaks become <br>, and when to use HTML output instead.
4 min read
Data Cleaning & File ConvertersMake a LaTeX Table From Excel With booktabs
How to turn an Excel table into LaTeX: the tabular code, escaped characters such as & % _ and #, booktabs or plain hline rules, and line breaks in cells.
4 min read
Data Cleaning & File ConvertersPaste an Excel Table Into GitHub as Markdown
How to paste an Excel or Google Sheets range into a GitHub README as a Markdown table: header, alignment, pipes, line breaks and converting only part of a sheet.
4 min read