Create a Markdown table

Generate a GitHub-compatible Markdown table from headers and rows.

freeworks offlinenothing uploaded
ToolMarkdown Table Generator
Input
Output

How it works

Headers and rows become pipe-delimited lines, a separator row is generated, and cell pipes and newlines are escaped. Alignment markers are placed in the separator for selected columns.

  • Left alignment is the neutral default.
  • A header row defines the table columns in GFM.

Worked example

Generate a Markdown table
Create a formatted Markdown table from data
Input
											Headers: ["Name","Role"]
Rows: [["Alice","Engineer"],["Bob","Designer"]]
										
Output
												| Name | Role |
| :--- | :--- |
| Alice | Engineer |
| Bob | Designer |
											

When to use this

README option tables, release notes, and project wiki comparisons generate Markdown tables.

Edge cases

  • A cell containing | must be escaped or creates another column.
  • Newlines cannot remain as arbitrary row breaks inside a cell.
  • Short rows receive empty cells rather than shifting later values.

References