About the Markdown Table Generator tool
Markdown tables are simple in theory but fiddly in practice: every row needs the same number of pipes, the separator line controls alignment, and keeping columns lined up by hand takes ages. This generator lets you edit the table as a grid and writes the Markdown for you.
Type into cells, add or remove rows and columns, or paste a block of cells from Excel, Google Sheets or a CSV file. Each column has alignment buttons for default, left, centre and right, which produce the :---, :---: and ---: separators understood by GitHub, GitLab, Obsidian and most Markdown renderers. Pipe characters inside cells are escaped as \| so they do not split columns.
With “Align pipes” on, the output is padded so the columns line up neatly in plain text, which makes tables in README files easy to read and review in diffs; wide characters like CJK and emoji count as two columns. Already have a Markdown table? Use “Import Markdown table” to load it into the grid, edit it and copy it back. A rendered preview shows the result, and it all runs in your browser.
How to use Markdown Table Generator
- Edit the grid directly, or click “Paste from spreadsheet” to bring in data.
- Use the alignment icons above each column to set left, centre or right alignment.
- Keep “Align pipes (pretty print)” on for neatly padded columns.
- To edit an existing table, click “Import Markdown table”, paste it and press “Load into editor”.
- Copy the “Markdown table” output or download it as table.md.
Features
Per-column alignment
Left, centre, right or default alignment written into the separator row.
Import existing tables
Parse a Markdown table, including alignment and escaped pipes, back into the grid.
Pretty-printed output
Columns are padded so the raw Markdown is readable, with wide characters measured correctly.
Spreadsheet paste
Bring in data from Excel, Google Sheets or CSV in one paste.
Rendered preview
See how the table will look once rendered, with alignment applied.
When to use it
- Add a comparison or options table to a GitHub README.
- Edit a messy table in existing documentation without counting pipes.
- Convert spreadsheet data to Markdown for a wiki, Obsidian or Notion.
- Create tables for static site blog posts written in Markdown.
- Tidy up table formatting before a pull request review.
Frequently asked questions
How do I align a column in Markdown?
Colons in the separator row set alignment: :--- is left, :---: is centre and ---: is right. This tool writes them for you based on the column buttons.
How do I put a pipe character inside a cell?
Escape it as \|. The generator does this automatically and the importer understands escaped pipes.
Can a cell contain line breaks?
Markdown table cells must stay on one line. Many renderers accept <br> for a line break inside a cell.
Do all Markdown apps support tables?
Tables are part of GitHub Flavored Markdown and are supported by GitHub, GitLab, Obsidian, most static site generators and many editors, but not by original Markdown.
Is my data uploaded?
No. Everything runs in your browser.