Skip to the content

Contact usFree tools · No signup · Files stay on your device

Developer Tools

How to make a Markdown table from Excel or Google Sheets

How to make a Markdown table from Excel or Google Sheets

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

  1. In Excel or Google Sheets, select the cells, including the header row, and copy them with Ctrl+C.
  2. Open Excel to HTML Table.
  3. 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.
  4. In the Code panel, find Output format and choose "Markdown table".
  5. 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 &lt;, so a cell like Sticky notes <3 is 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.

Frequently asked questions

Do I have to install anything to convert a sheet to a Markdown table?
No. Copy the cells, paste them into the Excel to HTML Table page, switch Output format to Markdown table and press Copy Markdown. It runs in your browser.
Why is there a row of dashes under the first row?
Markdown tables must have a header row followed by a separator row made of dashes. If your data has no header, the tool uses the column letters A, B, C as the header so the table is still valid.
What do the colons in the separator row mean?
A colon on the right, as in ---:, right-aligns the column. The tool adds it to number columns when Right-align numbers is ticked.
What happens to a pipe character inside a cell?
It is escaped as \| so it does not split the cell. A line break inside a cell becomes <br>, and a < sign is written as &lt;.
Will bold text or links from my sheet carry over?
No. Only the text of each cell is used. Add emphasis and links by hand after pasting. Characters such as * and _ in a cell are not escaped, so check the preview if your text contains them.
Found this useful? Share it

Tools in this guide

Main tool

Excel to HTML Table

Get clean table code from a spreadsheet: open an .xlsx or .csv file or paste copied cells, choose your styling, and copy the HTML or a Markdown table.

Open tool

Markdown Previewer

Write Markdown and see it rendered instantly, with GitHub-style tables, task lists and code blocks.

Open tool

Excel to JSON

Turn a spreadsheet into JSON you can use in code: an array of objects keyed by your header row, or plain arrays.

Open tool

CSV to Excel

Turn CSV files into a proper Excel workbook: numbers you can add up, leading zeros kept, a bold header row with filter buttons that stays visible.

Open tool

Back to all guides & blog