Markdown Table Generator
Paste a spreadsheet range, CSV or an untidy Markdown table and get a clean GFM pipe table: columns padded and aligned, numbers right-aligned, pipes escaped.
A Markdown table that renders on GitHub, GitLab and in docs tools and reads aligned in source, from any delimited rows — with the column count and row count stated.
Example: Name,Qty,Price / Widget,10,2.50 / Gadget,3,10 → a three-column table with Qty and Price right-aligned (---:) and every pipe lined up in the source.
Pipes that line up
in the source, not just when rendered.
What input is accepted, how alignment is chosen, what the padding rule is, and the limits of the GFM table syntax.
Input
Rows are lines; cells are split on tabs (what a spreadsheet copies), commas or semicolons (CSV, with double-quoted cells honoured), or pipes when the text already looks like a Markdown table — in which case the existing alignment row is discarded and the table is rebuilt. The delimiter is detected in that order and stated, or chosen. The first row is the header unless you say otherwise, in which case generic "Column n" headers are written, because the GFM syntax requires one. Short rows are padded with empty cells and the page says so.
Alignment and padding
GFM marks alignment in the second row: --- left, :-: centre, ---: right. On automatic, a column whose every non-empty body cell is a number (digits with optional sign, thousands commas, decimals or %) is right-aligned, everything else left. In pretty mode each column is padded to its longest cell (minimum three characters) so the pipes line up in source; compact mode writes the minimum. Rendering is identical either way. Pipes inside a cell are escaped as \| and line breaks inside a cell become spaces, since a GFM cell cannot contain either.
What the tool does not do
Merged cells, multi-line cells, column spans and captions do not exist in GFM tables; use HTML for those. Cell content is not otherwise transformed — bold, links and code spans pass through as typed. Nothing you enter leaves the browser; the same four anonymous usage counts as the rest of the site apply.
SOURCES
Last reviewed 19 September 2026. How results are checked: How we verify.