Convert Tables to Markdown: What a Converter Keeps, Changes and Drops
A practical review of converting spreadsheet, CSV and HTML tables to Markdown: what the syntax preserves, what it loses, and when plain text or HTML is better.
A Markdown table converter takes tabular data, usually pasted from a spreadsheet, a CSV file or an HTML page, and rewrites it as pipe-delimited Markdown table syntax. This review explains what that conversion changes, where it holds up, and where another format serves readers better. It covers the conversion approach in general, not a specific product. No particular tool was tested for this article, so claims about named tools or destinations are left to their own documentation.
Is converting a table to Markdown right for your use?
For simple, rectangular tables headed for a destination that renders Markdown tables, conversion is usually a good fit. Examples include README files, documentation sites and issue trackers that support the extension. The main benefit is that the table becomes plain text you can edit, diff and review in version control, and it renders as a real table where the syntax is supported.
The deciding tradeoff is structure. Markdown table syntax only supports a single header row, uniform rows and columns, and inline content inside cells. Anything beyond that is flattened, dropped or has to be worked around.
- Other formats are usually the better choice when:
- the table has merged cells, multi-level headers or row headers that carry meaning, in which case HTML is better;
- cells need lists, multiple paragraphs or block-level content;
- the data will be reused in calculations or imported elsewhere, in which case CSV or the original spreadsheet keeps it machine-readable;
- the destination does not render Markdown tables, so readers would see raw pipes and hyphens;
- the table is so wide that its raw source would be unreadable for anyone viewing it as plain text.
What the conversion actually changes
This is a formatting transformation. The converter changes the stored characters by adding pipes between cells, a delimiter row of hyphens under the header, and optionally colons for alignment and spaces for padding. It does not reverse or mirror text, and it does not substitute stylized Unicode characters. In this context, 'convert' means rewriting the syntax, not changing how the text looks. How the finished table looks, including borders, fonts, striping and column widths, is decided by the destination's Markdown renderer and its stylesheet, not by the converter.
Tables are not part of core CommonMark. The pipe syntax most converters produce comes from the GitHub Flavored Markdown tables extension, which other renderers have adopted to varying degrees. Whether a converted table renders at all therefore depends on the destination supporting that extension.
An illustrative input copied from a spreadsheet as tab-separated values:
Region Q1 Q2
North 1,200 1,350
South 980 1,010
A typical converted output, with the first column left-aligned and the numeric columns right-aligned:
| Region | Q1 | Q2 |
| :----- | ----: | ----: |
| North | 1,200 | 1,350 |
| South | 980 | 1,010 |
The cell values come through unchanged. The added elements are the pipes, the delimiter row and the padding. The padding only helps people reading the raw source and has no effect on the rendered table. The colons in the delimiter row set alignment: a colon on the left means left-aligned, a colon on the right means right-aligned, and colons on both sides mean centered.
| Source feature | Result after conversion |
| Cell text and numbers as displayed | Preserved as text |
| First row as header | Becomes the header row |
| Column alignment | Preserved only if the converter writes colons |
| Spreadsheet formulas | Lost; only the copied values remain |
| Merged cells, multi-row headers | Not supported; flattened or split |
| Line breaks and lists inside cells | Not supported natively; may become HTML tags if allowed |
| Bold, italic, inline code, links | Possible as Markdown inline syntax, if the converter maps them |
| Colors, borders, cell fills | Lost; styling comes from the destination |
| Table caption | No native syntax; must go in surrounding text |
Pipe characters inside cell content have to be escaped as a backslash followed by a pipe. Otherwise they split the cell. Under the GitHub Flavored Markdown rules this applies even inside inline code. A converter that skips this step will silently add columns. Checking any cell containing a pipe is one of the most useful reviews you can do after converting.
| Command | Purpose |
| ------------ | ---------------- |
| `a \| b` | Pipe a into b |
Readability and usability after copying or sharing
The converted table can be used in two ways, and they behave differently. The raw Markdown source is plain text, so it survives copying between editors, terminals and version control without losing anything. The rendered table is HTML, so copying it out of a browser hands the result to whatever the target application does with HTML tables. Some applications keep the grid and some flatten it to tab- or space-separated lines. This varies by application, and no specific destination was verified here.
Column padding in the raw source can look misaligned even when the conversion is correct. Converters usually pad by counting characters, but some characters don't take up one fixed-width column. Combining accent marks take none of their own, emoji built from several code points can appear as one symbol, and many East Asian characters occupy two columns. Only the source view is affected. The rendered table aligns its cells regardless. If the source view matters, for example for people reviewing changes in a terminal, check these rows by eye.
Where the extension is supported, renderers turn the header row into table header cells. That structure lets screen readers announce column headers as users move through cells. How well this works depends on the specific renderer, browser and assistive technology, and this article does not include a test of any combination. Markdown has no syntax for row headers or header scope, so tables where the first column labels each row lose that relationship. Reading raw Markdown with a screen reader means hearing or skipping the punctuation, depending on verbosity settings. That is a strong reason to make sure the destination actually renders tables.
Avoid stylized Unicode 'fonts', such as mathematical bold or script letters, inside cells. Converters keep them as typed, but they are separate code points, not formatted ordinary letters. Screen readers may announce them oddly or not at all, and searching for the plain word may not find them. Use Markdown emphasis or plain text instead. Symbols such as check marks used as cell values have a similar problem: a short word like 'Yes' is clearer for search and for assistive technology.
Rendered Markdown tables are ordinary text in the page, so their contents are generally searchable and editable like the rest of the document. Large tables are harder to maintain in raw form, because adding a column means touching every row. Many people keep the original spreadsheet or CSV as the source of truth and reconvert when the data changes.
When to keep a plain-text or data equivalent
Keep or provide another version alongside the Markdown table when:
the content will be shared somewhere that may not render tables;
readers need to sort, filter or calculate with the data;
the original table relied on merged cells or row headers to convey meaning.
A CSV file or the original spreadsheet keeps the data usable. For accessibility, a short sentence before the table summarizing what it shows also helps, because Markdown has no caption syntax.
Gaps in this review
No specific converter was evaluated. Features such as HTML input parsing, handling of quoted CSV fields, automatic pipe escaping and alignment detection vary between tools and should be checked on the tool you plan to use. Rendering support in particular destinations and behavior with particular screen readers were not tested. Privacy and data retention for online converters were not assessed. If your table contains sensitive data, read the tool's stated policy, or use a converter that runs locally, before pasting anything.