How to Convert Excel Spreadsheets to Markdown Tables
You have data in Excel. You need it in a Markdown table — for a README file, a documentation page, a blog post, or a GitHub wiki. Manually retyping it is out of the question. Copying and pasting from Excel directly into your Markdown file gives you a mess of tab-separated values that no Markdown renderer will recognize as a table.
This guide shows you three ways to convert Excel data to a Markdown table cleanly and quickly, from the instant online method to manual approaches for when you need more control.
Why You Would Convert Excel to Markdown
The most common scenarios where this conversion comes up:
Writing a README or documentation. Your project has a spreadsheet of configuration options, supported platforms, API parameters, or pricing tiers. You want to embed that data directly in your README.md or documentation without maintaining two copies.
Blogging and technical writing. You have data in Excel — benchmark results, comparison data, survey responses — and you want to include it as a formatted table in a Markdown-based blog or CMS.
GitHub wikis and issues. GitHub renders Markdown in issues, pull requests, discussions, and wiki pages. A Markdown table from your Excel data will display beautifully in any of these.
Keeping data in sync. You update your spreadsheet and need the Markdown table in your docs to reflect those changes. Having a reliable conversion workflow makes this much less painful.
Method 1: Using Excel to Markdown Converter (Fastest)
The fastest way to convert Excel data to a Markdown table is to use our Excel to Markdown converter. The process takes about 20 seconds.
Step 1: Prepare your Excel data
Open your Excel file. Make sure the first row contains your column headers. Clean up any merged cells (Markdown tables do not support cell merging), and remove any empty rows in the data range you want to convert.
A well-prepared Excel range looks like this:
| Name | Version | License | Size |
|---|---|---|---|
| react | 18.2.0 | MIT | 6.4 kB |
| typescript | 5.0.4 | Apache-2.0 | 72.3 kB |
Step 2: Upload or paste your data
Go to markdowntoexcel.com/excel-to-markdown. You can either:
- Upload your .xlsx file — Click the upload button and select your file. The tool reads the file entirely in your browser — nothing is sent to any server.
- Copy and paste — Select the cells in Excel, copy them (
Ctrl+C), and paste into the input area on the tool page.
Step 3: Preview the result
The tool instantly shows you the generated Markdown table in the preview panel. Check that the headers are correct and all rows are present.
Step 4: Copy or download
Click Copy Markdown to copy the table to your clipboard and paste it directly into your Markdown file. The output looks like this:
| Name | Version | License | Size |
|------------|---------|------------|---------|
| react | 18.2.0 | MIT | 6.4 kB |
| typescript | 5.0.4 | Apache-2.0 | 72.3 kB |
| axios | 1.4.0 | MIT | 11.2 kB |
Paste this into any Markdown file and it renders as a perfectly formatted table.
Method 2: Manual Conversion (No Tools Required)
If you only have a small amount of data — say, fewer than 10 rows and 4 columns — you can convert it manually. Understanding the manual process also helps you troubleshoot when automatic conversions do not look right.
The Markdown table structure
Every Markdown table has three parts:
| Column 1 | Column 2 | Column 3 | ← Header row
|----------|----------|----------| ← Separator row
| Data 1 | Data 2 | Data 3 | ← Data rows
Manual conversion steps
Step 1: Write out your header row using pipe characters. Each column name goes between pipes.
| Product | Price | Stock |
Step 2: Add the separator row below the header. Use at least three hyphens per column.
| Product | Price | Stock |
|---------|-------|-------|
Step 3: Add each row of your Excel data in the same pipe-separated format.
| Product | Price | Stock |
|---------|-------|-------|
| Widget A | $12.99 | 150 |
| Widget B | $24.99 | 47 |
| Widget C | $8.49 | 312 |
Step 4: Optionally, align the pipe characters to make the raw Markdown more readable (most tools do this automatically, but it helps when editing by hand).
Method 3: Using Excel Formulas to Generate Markdown
For advanced users who need to convert large or regularly-updated datasets, you can use Excel formulas to automatically generate the Markdown table syntax. This creates a "live" Markdown output that updates whenever your data changes.
Setting up the formula approach
Assume your data is in columns A through D, with headers in row 1 and data starting in row 2.
In a helper column (e.g., column F), create the header row:
="|"&A1&"|"&B1&"|"&C1&"|"&D1&"|"
This generates: |Name|Version|License|Size|
In the next cell, create the separator row:
="|"&REPT("-",LEN(A1))&"|"&REPT("-",LEN(B1))&"|"&REPT("-",LEN(C1))&"|"&REPT("-",LEN(D1))&"|"
For each data row (starting in the row after the separator):
="|"&A2&"|"&B2&"|"&C2&"|"&D2&"|"
Copy this formula down for all data rows.
Step 4: Select all the generated cells in column F, copy them, and paste as plain text into your Markdown file.
This approach is most useful when you have data that changes regularly and you want to refresh the Markdown table without going through a conversion tool each time.
Tips for Clean Markdown Output from Excel
Remove merged cells before converting. Merged cells in Excel have no equivalent in Markdown. Most conversion tools will extract only the value from the first cell in a merged range. Split all merged cells before converting.
Check for special characters. If your Excel data contains pipe characters (|), they will break the Markdown table syntax since pipes are used as column separators. Either remove them from the data or escape them with a backslash (\|) after conversion.
Trim whitespace from cells. Excel cells sometimes contain leading or trailing spaces that are invisible in the spreadsheet but appear in the Markdown output. Use Excel's TRIM() function to clean your data before converting:
=TRIM(A1)
Handle empty cells explicitly. Empty cells in Excel become empty table cells in Markdown — which is fine. But if your table has many empty cells, consider using a placeholder like — or N/A to make the table easier to read.
Limit column count for readability. Markdown tables with more than 6–7 columns become very wide and difficult to read in both source form and some renderers. If your Excel data has many columns, consider splitting it into multiple tables grouped by theme.
Format numbers as text if needed. Excel may display numbers with formatting (like currency symbols or thousands separators) that you want to preserve in the Markdown. Make sure the cells are formatted as text or that the display values are what you want in the output.
Adding Column Alignment
After converting, you can control how text aligns in each column by adding colons to the separator row:
| Product | Price | In Stock |
|:---------|-------:|---------:|
| Widget A | $12.99 | 150 |
| Widget B | $24.99 | 47 |
|:---------|— left-aligned (default)|-------:|— right-aligned (good for numbers and prices)|:-------:|— center-aligned
Right-aligning numeric columns like prices and quantities makes your table much easier to scan, just like in a well-formatted Excel spreadsheet.
Reverse: Going Back from Markdown to Excel
If you ever need to go the other direction — converting a Markdown table back into an Excel file — our Markdown to Excel converter handles that instantly. This bidirectional workflow is useful when you receive documentation with Markdown tables and need to analyze the data in a spreadsheet.
Conclusion
Converting Excel data to a Markdown table is a routine task for developers, technical writers, and anyone who maintains documentation alongside spreadsheet data. The fastest approach is using the Excel to Markdown converter — upload or paste your data and get a properly formatted Markdown table in seconds.
For large or regularly-updated datasets, the formula approach in Excel creates a live Markdown output that stays synchronized with your data. And for small, one-off conversions, the manual method gives you complete control with just a few minutes of typing.
Whichever method you use, the resulting Markdown table will render correctly in GitHub, Notion, documentation sites, and any other platform that supports GitHub Flavored Markdown.