Markdown tables are easy to read and painful to type. Every column has to line up with pipes and dashes, and one extra | can break the layout. If your data already sits in Excel or Google Sheets, there is no reason to build it by hand. Copy the cells, paste them into our free Excel to HTML Table tool, switch to Markdown and copy the result.
This post shows the steps, the options that matter for Markdown, and how to check the table before it goes into a README or a docs page.
The quick way: copy, paste, convert
- In Excel or Google Sheets, select the cells, including the header row, and copy them with Ctrl+C.
- Open Excel to HTML Table.
- Click the box labelled "Or paste cells copied from Excel or Google Sheets, or CSV text" and press Ctrl+V. Copied cells arrive as tab-separated text, and the tool detects that without a setting.
- In the Code panel, find Output format and choose "Markdown table".
- Press "Copy Markdown", then paste into your file. "Download .md" saves it as a file instead.
If your data is in a file rather than on the clipboard, choose "Choose an Excel or CSV file" and pick the sheet in the Sheet list.
What you get
Suppose you copy this from a sheet:
Name Phone Amount
Rahim 01712345678 1,500
Nusrat 01812345678 720
Imran 01912345678 2350.50
The Markdown output is:
| Name | Phone | Amount |
| ------ | ----------- | ------: |
| Rahim | 01712345678 | 1,500 |
| Nusrat | 01812345678 | 720 |
| Imran | 01912345678 | 2350.50 |
Three things happened without you asking:
- The columns are padded so the source lines up in a plain text editor.
- The Amount column is right-aligned. The
------:in the separator row, with a colon on the right, is the Markdown way to say it. - The Phone column stayed on the left. The tool treats values that start with a zero, such as
01712345678, as labels, not quantities.
Options that matter for Markdown
Most of the Table options panel is about HTML. For Markdown, these are the ones that count:
| Option | Effect on the Markdown |
|---|---|
| Sheet | Which sheet of the workbook is converted. |
| First row is the header | When ticked, row 1 is the header. Unticked, the header becomes A, B, C and every row is data. |
| Right-align numbers | Adds the ---: colons to number columns. Unticked, all columns are left-aligned. |
| Skip empty rows | Drops rows with no text. |
| Rows to include | Keeps the first 10, 25, 50 … rows only. |
| Caption | Adds a bold line above the table, such as **Fees 2026**. |
Styling and Indent only affect the HTML output and are ignored for Markdown.
A Markdown table needs a header row, which is why the tool uses the column letters when you untick the header option. If your sheet really has no header, either leave the letters or edit them after pasting.
What the tool escapes, and what it does not
Characters that would break a table are handled for you:
- A pipe inside a cell is written as
\|, so it does not start a new column. - A line break inside a cell becomes
<br>, which GitHub and many other renderers show as a line break. - A
<sign is written as<, so a cell likeSticky notes <3is not read as a tag. - Spaces at the start and end of a cell are trimmed.
Other Markdown characters are not escaped. A cell that contains *bold* stays *bold*, and Markdown will show it in italics. If your data holds asterisks, underscores or square brackets, paste the result into the Markdown Previewer to check how it looks before publishing.
Where the table works
The result is a GitHub-flavoured Markdown table. It renders in GitHub, GitLab, Notion, Obsidian and most Markdown editors. Not every renderer supports the <br> line breaks inside cells, so avoid multi-line cells if you are unsure.
Some places have different rules. Basic Markdown, the original version, has no tables at all, so a very old tool may show the pipes as plain text. If that happens, use the HTML option in the same tool: pick "HTML table" under Output format.
A faster routine for tables you update often
Docs tables change: a fee goes up, a seat count changes. Keep the sheet as the master and redo the three steps whenever it changes, so the Markdown never drifts away from the numbers. For a long-lived table, add a short note in the README saying where the original lives.
If a table is part of a Word document, use Word to Markdown instead. It reads Word tables directly and writes them as pipe tables, with the first row as the header. The details are in the Word to Markdown guide.
Common problems and how to fix them
The table shows as plain text with pipes
Most Markdown renderers need a blank line before the table. Make sure the line above it is empty. Also check that you copied the separator row, the line of dashes.
Everything landed in one column
The pasted text was not split. This can happen when cells contain unusual separators. Save the sheet as CSV and open that file with "Choose an Excel or CSV file". The delimiter is detected for you, whether it is a comma, semicolon, tab or pipe.
Numbers are not right-aligned
Right-alignment needs at least 80% of the filled cells in the column to look like numbers. A column with units such as 12 kg stays on the left. Clean the cells in the sheet, or add the colon to the separator by hand.
The table is too wide
Markdown has no way to wrap columns, and a table with many columns is hard to read in a README. Delete the columns you do not need in the sheet before copying, or use Rows to include to show only a sample.
A cell with a formula shows the wrong text
The tool takes the text displayed in the cell, so a formula shows its last calculated result. If a Google Sheets formula shows an error, fix it in the sheet first.
Quick checklist
- Copy the range with its header row.
- Paste, choose "Markdown table", press "Copy Markdown".
- Check which columns were right-aligned.
- Preview the table if the text has
*,_or[. - Leave a blank line above the table in your file.



