Markdown Table Generator

Paste cells from Excel, Google Sheets or a CSV file, or type into the grid. Set alignment, reorder and sort columns, then copy a clean GitHub-flavored Markdown table. Paste an existing Markdown table to edit it.

Row 1
Col A
Row number
1
2
3

3 rows × 3 columns · Arrow keys and Enter move between cells · Enter on the last row adds a row · Ctrl+Z undoes · Drop a .csv, .tsv, .md or .html file here

Output

| Plan     | Price |   Users   |
| :------- | ----: | :-------: |
| Free     |    $0 |     1     |
| Team     |   $12 |    10     |
| Business |   $30 | Unlimited |

Markdown table syntax in short

A Markdown table is a header row, a separator row of dashes, and one line per data row. Cells are separated by pipes (|). This is the GitHub Flavored Markdown (GFM) table format used by GitHub, GitLab, Obsidian, VS Code and most docs sites.

Colons in the separator row set alignment: :--- is left, :---: is center and ---: is right. Spaces used to line the columns up are optional; they only make the source easier to read. This generator writes them for you, or leaves them out if you switch off Align columns.

  • A pipe inside a cell must be escaped as \|. The generator does this for you.
  • A cell can't contain a real line break. Use <br>, which GitHub renders as a new line. Multi-line spreadsheet or CSV cells are converted to <br> automatically.
  • Markdown has no merged cells. Merged cells pasted from a spreadsheet arrive as one filled cell and empty cells next to it.
  • Every row needs the same number of cells. Short rows are padded with empty cells.

How to use Markdown Table Generator

  1. Copy cells from Excel or Google Sheets and paste them into the grid, or click Paste CSV / Excel / Markdown and paste CSV, TSV or an existing Markdown table
  2. Edit cells directly; use the row and column buttons to move, insert, sort or delete
  3. Set each column to left, center or right alignment
  4. Click Copy Markdown, or switch to HTML or CSV and copy or download that instead

Why use tinyMD for Markdown Table Generator

  • Spreadsheet-style grid: arrow keys and Enter move between cells, Ctrl+Z undoes
  • Paste a block copied from Excel or Google Sheets into any cell; the grid grows to fit
  • Import CSV (quoted fields, commas inside quotes, semicolon CSV), TSV, an existing Markdown table or an HTML table
  • Left, center and right column alignment
  • Move, insert, delete and sort rows and columns; transpose; remove empty rows
  • Copy aligned or compact GitHub Flavored Markdown, or export the same table as HTML or CSV

Frequently asked questions

How do I convert an Excel or Google Sheets range to a Markdown table?

Select the cells in Excel or Google Sheets and copy them. Click the top-left cell of the grid (the header) and paste. The first row becomes the header row and the Markdown appears under the grid, ready to copy. You can also use Paste CSV / Excel / Markdown and paste into the box.

How do I convert CSV to a Markdown table?

Paste the CSV into the import box, or open the .csv file. Quoted fields are handled properly, so "Smith, John" stays in one cell and "" becomes a quote mark. Semicolon-separated CSV from European Excel is detected too. Untick First row is the header if your data has no header row.

Can I open an .xlsx file directly?

No. The tool reads text formats only (.csv, .tsv, .md, .html, .txt). For an Excel file, open it, select the cells, copy and paste them into the grid; the result is the same.

How do I set left, center or right alignment?

Each column header has three alignment buttons. The generator writes :---, :---: or ---: in the separator row, and the grid shows the alignment as you edit.

Can I edit an existing Markdown table?

Yes. Paste the Markdown table into the import box (or into any cell). Its cells, escaped pipes and column alignment are read back into the grid, so you can add columns, re-sort or fix typos and copy a tidy table again.

How do I put a pipe or a line break inside a cell?

Type the pipe as usual; it is escaped as \| in the output. For a line break, type <br> in the cell. GitHub and most Markdown renderers show it as a new line inside the cell.

Will the table work in a GitHub README?

Yes. The output is GitHub Flavored Markdown table syntax, which works in READMEs, issues, pull requests, wikis and most Markdown editors and static site generators.

Is my data uploaded anywhere?

No. Parsing, editing and export all run in your browser, and the table data is not sent to a tinyMD server.