Home/HTML & Markdown/Markdown Table Generator

Markdown Table Generator

Turn spreadsheet data into clean, aligned GitHub-flavored Markdown tables — with pipe escaping, per-column alignment and a live preview.

Free Browser-based No signup Copy-ready
Table Settings
Copy directly from a spreadsheet — tabs, commas, semicolons and pipes are detected automatically.
Column alignment
GitHub renders alignment from the colons in the separator row. Numeric columns are detected and right-aligned by default.
Options
Markdown Table
table.md

      

How it works

1

Paste your data

CSV, TSV, a copy from Excel, or an existing Markdown table you want to reformat.

2

Set alignment

Per column, or all at once. Numeric columns are right-aligned automatically.

3

Paste into your README

Padded output stays readable in the raw file and in diffs.

Markdown tables, and where they run out

Markdown tables are a GitHub-flavored extension rather than part of the original spec, which is why they are simultaneously everywhere and slightly inconsistent. The core is simple: a header row, a separator row of dashes, then data rows, all delimited by pipes.

Things that trip people up

  • Forgetting the separator row — the block silently renders as a paragraph.
  • An unescaped | inside a cell, which splits the row. Extremely common when documenting shell pipelines or regex.
  • Trying to put a bullet list or a fenced code block inside a cell. Only inline formatting works.
  • Expecting a real newline in a cell to render. Use <br>.
  • Assuming column padding affects the output. It does not — it is purely for the source.

Aligned or compact?

Aligned pads every column to the same width. The raw Markdown is readable as a table even before rendering, which makes reviews far easier — but any edit to one cell can reflow the whole block in a diff.

Compact uses minimal widths. Diffs stay tiny and edits touch one line, at the cost of an unreadable source. For tables that change often — a status matrix, a changelog — compact is usually the better trade.

Paste an existing Markdown table back into the input and it will be parsed and reformatted. That is the quickest way to realign a table that has drifted after editing, or to switch a whole file from padded to compact.

Frequently Asked Questions

View all FAQs
How do I make a table in GitHub Markdown?
Create a header row, a delimiter row using hyphens and then the data rows. Pipes separate the cells.
How do I center a Markdown table column?
Use colons on both sides of the delimiter, such as :---:.
How do I right-align a Markdown column?
Use a trailing colon in the delimiter cell, such as ---:.
How do I put a pipe character inside a Markdown table cell?
Escape it with a backslash, for example \|, so it is treated as cell content instead of a separator.
Can I convert Excel data to Markdown?
Yes. Copy the spreadsheet range, paste it into the generator and use the tab-delimited input.
Does Markdown support merged cells?
Standard GitHub Flavored Markdown table syntax does not provide normal rowspan or colspan features. Use an HTML table when you need complex merged cells.
Are Markdown tables part of basic CommonMark?
Tables are an extension in GitHub Flavored Markdown rather than a core CommonMark table syntax.

Markdown Table Generator – Create Clean GitHub-Flavored Tables

Use the Markdown Table Generator above to turn pasted CSV, TSV or spreadsheet data into a clean GitHub Flavored Markdown table without hand-aligning pipes and dashes.

Paste your rows, choose the delimiter, decide whether the first row is the header, set column alignment and generate the result. The tool can format the source for readability, escape pipe characters that would otherwise split a cell and show a rendered preview before you copy or download the Markdown.

Markdown tables look simple until the data contains punctuation, uneven columns or different alignment requirements. A generator removes the repetitive syntax while still producing readable plain text that works well in README files, documentation, issue descriptions and Markdown-based knowledge bases.

What Is a Markdown Table?

A Markdown table is a plain-text representation of rows and columns.

GitHub Flavored Markdown uses a header row, a delimiter row and zero or more data rows.

A basic table looks like:

| Name | Role |
| --- | --- |
| Maya | Developer |
| Omar | Designer |

The first row contains the column headings.

The second row tells the Markdown renderer that the block is a table.

The remaining rows contain the data.

GitHub Flavored Markdown extends CommonMark with table syntax, which is why tables work in GitHub even though basic original Markdown did not define a dedicated table format.

How to Use This Markdown Table Generator

Paste your source data into the tool.

You can use content copied from:

  • Excel
  • Google Sheets
  • CSV files
  • TSV files
  • database exports
  • plain-text lists

Choose the delimiter if it is not detected automatically.

Mark the first row as a header when appropriate.

Then set the alignment for each column.

For example, text columns may be left aligned while prices or quantities may be right aligned.

Generate the table and inspect the preview.

If a cell contains a literal pipe character, confirm it has been escaped in the Markdown output.

Then copy the Markdown into the target document.

The Header Row Is Required in GFM Tables

A GitHub Flavored Markdown table requires a header row.

Even if your source data does not naturally have headings, the table syntax still needs that first row followed by the delimiter row.

For example:

| Item | Value |
| --- | --- |
| A | 10 |

The GFM specification requires the header row and delimiter row to contain the same number of cells.

If the header has three columns but the delimiter row has only two, the block may not be recognized as a table.

This is an easy mistake when writing Markdown manually and one reason generated output is useful.

What Is the Markdown Table Delimiter Row?

The delimiter row appears directly below the header.

A basic delimiter cell contains hyphens:

---

Alignment is indicated with colons.

Left aligned:

:---

Centered:

:---:

Right aligned:

---:

A three-column table might use:

| :--- | :---: | ---: |

The first column is left aligned, the second centered and the third right aligned.

The generator builds these markers automatically from your alignment settings.

That is much less error-prone than editing punctuation by hand across a wide table.

Column Alignment in Markdown

Alignment is most useful when the data has a clear visual type.

Text such as names and descriptions is usually easiest to scan when left aligned.

Numbers often read better when right aligned.

Short statuses may work well centered.

Example:

| Product | Status | Price |
| :--- | :---: | ---: |

This does not change the underlying data.

It only communicates how compatible Markdown renderers should display the cells.

Not every Markdown platform implements every extension identically, so preview the table in the system where it will actually be published.

For GitHub, use GFM-compatible syntax.

Escaping Pipe Characters Inside Cells

The pipe character:

|

normally separates columns.

If a cell itself needs a literal pipe, it must be escaped so the parser does not treat it as another column boundary.

For example:

A \| B

represents text containing a pipe within one cell.

This matters in technical documentation because pipe characters appear in:

  • shell commands
  • regular expressions
  • programming examples
  • union-type notation
  • formulas
  • option lists

A generator should escape these values automatically.

Otherwise one innocent character can shift every remaining value into the wrong column.

Markdown Tables from CSV

CSV is a convenient source format because it already represents rows and columns.

However, proper CSV can contain quoted commas and line breaks inside fields.

A naive conversion that simply splits every line on commas can produce the wrong result.

For example:

"Smith, Jane",Engineering

contains two fields, not three.

When converting CSV, use a parser that respects CSV quoting.

If you are generating difficult input to test a parser, use the CSV Test Data Generator first, then convert the result.

The raw structure matters more than how the file happens to look in a text editor.

Markdown Tables from TSV and Spreadsheets

Copying cells from Excel or Google Sheets often produces tab-separated text.

That makes TSV a practical input for Markdown generation.

Tabs are less likely than commas to appear inside normal cell text, which makes pasted spreadsheet ranges easier to interpret.

A typical workflow is:

  1. select a range in the spreadsheet
  2. copy it
  3. paste it into the generator
  4. choose tab as the delimiter
  5. review the table
  6. copy the Markdown

This is faster than retyping each value and avoids the common mistake of missing a pipe or delimiter row.

Pretty Markdown vs Compact Markdown

Markdown does not require every source column to line up visually.

Both of these can render as the same table:

| Name | Price |
| --- | ---: |
| Pen | 2 |

and a padded version where spaces are added to align the raw source.

Pretty formatting is helpful when humans will edit the Markdown directly.

Compact formatting produces shorter source.

Choose based on the document workflow.

For a README that developers maintain by hand, readable source is valuable.

For machine-generated Markdown, compact output may be perfectly acceptable.

Markdown Tables Do Not Support Every HTML Table Feature

GFM tables are intentionally simple.

They are not a good fit for every tabular layout.

Standard GFM table syntax does not provide straightforward native syntax for:

  • rowspan
  • colspan
  • multi-level headers
  • complex cell grouping
  • rich block content inside cells

When the structure becomes complicated, an HTML table may be the better choice.

Use the HTML Table Generator when you need semantic header scopes, captions or more control over markup.

Markdown works best when the table is genuinely simple.

Tables in GitHub README Files

Markdown tables are common in GitHub READMEs because they make comparison information easy to scan.

Good uses include:

  • feature matrices
  • environment variables
  • command options
  • browser support
  • package versions
  • API fields
  • project status
  • benchmark summaries

Keep headings concise.

If a cell contains several paragraphs of prose, the information may belong outside the table.

Tables are strongest when the reader can compare values across rows and columns quickly.

A giant table is not automatically clearer than well-structured headings and lists.

Tables in Issues and Pull Requests

A small table can make a bug report or pull request easier to review.

For example:

EnvironmentResult
ChromePass
FirefoxFail

This is useful for compatibility tests, rollout status or before/after comparisons.

If you are tracking individual tasks rather than comparing data, use a GitHub task list instead.

Tables answer “how do these values compare?”

Task lists answer “what work remains?”

Choosing the correct structure makes collaborative documents easier to scan. See the GitHub Task List Generator.

Common Markdown Table Mistakes

Watch for these problems:

  • forgetting the delimiter row
  • using a different number of header and delimiter cells
  • failing to escape a pipe inside a cell
  • parsing quoted CSV with a simple comma split
  • assuming raw column spacing affects rendered alignment
  • using Markdown for a table that needs rowspan or colspan
  • creating a huge table that is harder to read than normal prose
  • forgetting that different Markdown platforms may support different extensions
  • turning every list of information into a table
  • failing to preview after pasting spreadsheet data

The goal is not merely valid Markdown. The result should remain useful when rendered and understandable in source form.

Related searches

markdown table generatorcsv to markdown tablegfm table syntaxmarkdown table alignmentmarkdown table escape pipeexcel to markdown tablemarkdown table delimiter rowtsv to markdownmarkdown table vs html tablegithub readme tablemarkdown table centered right alignedpretty markdown table formatter