Markdown Table Generator
Create a Markdown table without typing a single pipe. Fill in the grid, or paste cells from a spreadsheet, choose how each column is aligned, and copy table code whose columns line up neatly in plain text.
- Runs in your browser
- No sign-up
- Free to use
How to use Markdown Table Generator
- Type into the grid, or paste cells from Excel, Google Sheets, a CSV file or an existing Markdown table into the first cell.
- Add or delete rows and columns with the buttons around the grid.
- Choose the alignment of each column from the menu above it.
- Copy the generated Markdown or download it as a .md file.
Markdown Table Generator features
Spreadsheet-like editing
Move with Enter and the arrow keys; a new row is added when you press Enter in the last one.
Paste from anywhere
Tab-separated cells from spreadsheets, comma-separated text and Markdown tables are recognised and fill the grid.
Column alignment
Left, centre or right per column, written with the standard colon syntax.
Readable source
Cells are padded so that the pipes line up, which makes the table easy to read and edit as plain text.
Safe cell content
Pipe characters inside cells are escaped and line breaks become <br>, so the table never breaks.
Live preview
See the rendered table next to the code.
When to use Markdown Table Generator
- Adding a comparison or options table to a README.
- Moving a small table from a spreadsheet into documentation or a wiki.
- Editing an existing Markdown table that has become hard to read.
- Writing tables for GitHub issues, pull requests and comments.
Markdown Table Generator FAQ
What is the syntax of a Markdown table?
A header row, a separator row and any number of body rows, with cells divided by vertical bars. The separator row consists of at least three hyphens per column. Tables are part of GitHub Flavored Markdown and are supported by GitHub, GitLab, most static site generators and many editors.
How is column alignment written?
With colons in the separator row. A colon on the left (:---) aligns left, on both sides (:---:) centres, and on the right (---:) aligns right. Without colons the renderer uses its default, usually left.
Can I paste a table from Excel or Google Sheets?
Yes. Copy the cells and paste them into the first cell of the grid. The whole table is replaced by what you pasted. Pasting into another cell writes the block starting from that cell.
Can a cell contain a pipe character or a line break?
A pipe is escaped as \| automatically. Markdown tables cannot contain real line breaks inside a cell, so a line break is written as <br>, which most renderers display as a new line.
Does the padding affect the rendered table?
No. Extra spaces inside cells are ignored when the table is rendered. They only make the source easier to read. Turn the option off for the shortest possible code.
Can I merge cells?
No. Markdown tables have no syntax for cells spanning several rows or columns. If you need merged cells, write the table in HTML, which most Markdown renderers accept, with the HTML Table Generator.
Tables in Markdown
Tables are the one part of Markdown that is tedious to write by hand. The syntax is simple enough, a row of cells between vertical bars with a line of hyphens under the header, but keeping it tidy is laborious. Add one long value and every other row needs more spaces to stay aligned. Insert a column and each line must be edited. Most people end up with tables that render correctly and are unreadable in the source.
A grid editor removes the manual work. You edit values the way you would in a spreadsheet, and the code is produced from the grid each time something changes. The widest cell of each column sets the width, shorter cells are padded, and the separator row is drawn to match. When the content changes, the layout is recalculated.
Alignment deserves a little thought, since it makes tables easier to scan. Text reads best left-aligned. Numbers are easier to compare when right-aligned, so that digits of the same magnitude sit under each other. Centring suits short values such as yes and no or status marks.
Markdown tables do have limits. Every table needs a header row. Cells hold one line of inline content: text, emphasis, links and code, but no lists or paragraphs. There is no way to merge cells. For anything beyond a simple grid, HTML tables are the fallback, and they can be placed directly in most Markdown documents.