How to Turn Excel into a Markdown Table
Key points
- Choose
- Set
- Paste
You want to put a table in a GitHub README or documentation. Markdown tables have many symbols and are tedious to write by hand. Choosing "Markdown table" in Convert an Excel Table to HTML or Markdown turns an Excel table straight into a Markdown table.
Steps
- Choose an .xlsx with "Choose an Excel file".
- Choose the "Sheet", and under "Format" choose "Markdown table".
- Check the "After conversion" content and press "Copy result".
- Paste into the README or documentation.
Ticking "Make the first row a header" gives a Markdown header row (with a separator line).
What a Markdown table is
A way of writing tables with vertical bars (|) and hyphens (-). Used in GitHub, Notion and various blog and documentation tools.
Good for
- Putting a specification list in a GitHub README
- Putting comparison tables in technical documents
- Pasting tables into Markdown-compatible notes or blogs
Checks after pasting
- Is the table displayed correctly (check in the preview)?
- Are there vertical bars inside the text?
- Do column counts match?
Cautions
- A vertical bar (|) inside a cell can shift the columns
- Line breaks inside cells may not be representable as they are
- Colours and borders aren't included in Markdown tables
Example
Made a library compatibility table in Excel. Turned it into a Markdown table and pasted it into the README, where it displayed as a table on GitHub.
Common stumbling blocks
- The table breaks: check for vertical bars or line breaks in cells.
- No header row: check "Make the first row a header".
Frequently asked questions
Are column widths aligned?
They are adjusted automatically at display time.
Summary
From Excel to Markdown tables. Making tables for READMEs and documents is quick.
Use "Convert an Excel Table to HTML or Markdown" (free)Tools that go well with this
- Convert Excel to CSV or JSON: Convert an Excel sheet to CSV, TSV or JSON.
- Convert Word to HTML: Turn Word text into HTML.
- Convert CSV and JSON: Convert between CSV and JSON instantly.