LiveMarkdownText
BeginnerReviewed and updated

Excel and Google Sheets to Markdown Tables

Move spreadsheet data into a readable GitHub Flavored Markdown table without retyping cells or manually counting pipe characters.

Prepare the spreadsheet first

A Markdown table has one header row and a rectangular set of data rows. Prepare the source sheet the same way: put a short, unique label in every first-row cell, remove decorative title rows, and make sure each record occupies one row. Merged cells, multiple header bands, and formulas that display errors do not translate cleanly.

If the workbook contains several unrelated tables, export them separately. Smaller focused tables are easier to read in documentation and behave better on narrow screens.

Export from Excel

  1. Open the sheet that contains the table you want to publish.
  2. Remove columns that should not appear in the final document.
  3. Use File → Save As and choose CSV UTF-8 (Comma delimited).
  4. Confirm that only the active sheet will be saved when Excel displays that warning.
  5. Open the CSV in a text editor and copy its contents.

UTF-8 helps preserve non-English text and symbols. Excel may format dates or large numbers according to the visible cell value, so inspect those columns before conversion.

Download CSV from Google Sheets

  1. Select the tab containing the final data.
  2. Choose File → Download → Comma-separated values (.csv).
  3. Open the downloaded file as text and copy the CSV.
  4. Paste it into the CSV to Markdown table converter.

The converter treats the first row as the Markdown header and pads short rows so the output remains rectangular. Quoted commas and line breaks are parsed as CSV data, while cell line breaks become spaces in the Markdown table.

Example conversion

Spreadsheet data exported as CSV:

Plan,Monthly price,Best for
Starter,0,"Personal notes, small READMEs"
Team,12,Shared documentation

Generated Markdown:

| Plan    | Monthly price | Best for                      |
| ------- | ------------- | ----------------------------- |
| Starter | 0             | Personal notes, small READMEs |
| Team    | 12            | Shared documentation          |

Handle special cell content

Commas

Valid CSV surrounds a cell containing commas with double quotes. Exporting from a spreadsheet handles this automatically; hand-written CSV must do the same.

Pipe characters

Markdown uses | as a column boundary. The converter escapes pipes inside cell values as \| so they remain literal text.

Newlines

Standard GFM tables do not support block content inside a cell. The converter replaces embedded line breaks with spaces. If the line break carries meaning, rewrite the cell or move that content below the table.

Formulas

CSV stores displayed values, not live spreadsheet formulas. That is normally correct for documentation: the Markdown table becomes a static snapshot. Re-export it when source values change.

Choose alignment after conversion

Use left alignment for names and descriptions, center for compact status values, and right for numbers. Alignment is controlled by colons in the separator row, not by spaces used to make the source readable.

| Item | Status | Price |
| :--- | :----: | ----: |
| Pro  | Active | 29.00 |

Validate before publishing

  • Preview the table in the target Markdown flavor.
  • Check dates, currency, percentages, and leading zeros.
  • Confirm every column has a meaningful header.
  • Remove data that should not be public.
  • Split extremely wide tables into smaller, task-focused tables.