# Markdown Table Generator

> Build a Markdown table in a grid or paste CSV, TSV or Excel cells, set column alignment and copy neatly padded GitHub-flavoured Markdown with a preview.

- URL: https://www.tooljig.com/markdown-table-generator
- Category: [Developer tools](https://www.tooljig.com/category/developer.md)
- Runs: In the browser; nothing uploaded
- Price: free, no account needed

## What it does

Edit cells in a grid, add or remove rows and columns, choose left, centre or right alignment per column, and get a GitHub-flavoured Markdown table with the columns padded so it also reads well as plain text. To convert a spreadsheet, paste cells copied from Excel or Google Sheets, or CSV and semicolon-separated data: the delimiter is detected and quoted fields are read according to RFC 4180. A live preview shows how the table will render.

## How to use it

1. Edit the grid, or paste CSV, TSV or spreadsheet cells and press Import.
2. Set each column's alignment and add or remove rows and columns.
3. Copy the Markdown, padded or compact.

## Good to know

- The first row is always the header, because Markdown tables require one. Pipe characters in cells are escaped as \| and line breaks become <br>.
- Padding counts characters, so columns containing wide characters such as Chinese, Japanese or emoji may look slightly uneven as plain text. They still render correctly.
- GitHub-flavoured Markdown tables cannot merge cells or contain block content such as lists.

## FAQ

### How do I align a column in Markdown?

Put colons in the separator row: :--- for left, :---: for centre and ---: for right.

### How do I put a pipe | inside a Markdown table?

Escape it as \|. The generator does this for you.

### Can I paste directly from Excel?

Yes. Copied cells arrive as tab-separated text, which is detected automatically. Cells that contain line breaks are kept together because Excel quotes them.

## Related tools

- [Markdown Editor](https://www.tooljig.com/markdown-editor.md): Write Markdown with a live side-by-side preview, GitHub tables and task lists. Copy the HTML or download .md and .html files. Runs in your browser.
- [CSV to JSON](https://www.tooljig.com/csv-to-json.md): Convert CSV tables into clean JSON arrays.
- [JSON Formatter](https://www.tooljig.com/json-formatter.md): Format, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.
