Free Online Markdown Table Generator
Generate formatted Markdown tables with custom columns, rows, and alignment — free online tool. Supports GitHub Flavored Markdown (GFM). Copy with one click.
100% Client-Side · Your data never leaves your browserHow to Use Markdown Table Generator
The tool provides an editable grid for building Markdown tables visually — no need to type pipes and dashes manually.
- Use the Cols and Rows selectors to set the table dimensions (2–10 columns, 1–20 rows).
- Click the header cells (violet row) to type column names. Click the L / C / R / — alignment button on each header to cycle through Left, Center, Right, and None alignments.
- Fill in the data cells in the rows below the header.
- Choose between Markdown or HTML output via the Output dropdown, then click Generate or press Ctrl/Cmd+Enter.
- Click Copy Markdown (or Copy HTML) to copy the result. A live HTML preview is shown below the Markdown output.
- Need a quick example? Click Sample to populate a realistic 4-column API reference table.
- Already have a Markdown table? Click Import, paste it in, and click Parse & Load to edit it.
Keyboard shortcuts: Ctrl/Cmd+Enter to generate, Ctrl/Cmd+K to clear all cells.
Frequently Asked Questions
What are GitHub Flavored Markdown (GFM) tables?
GFM tables are a Markdown extension supported by GitHub, GitLab, and most modern Markdown renderers. They use pipe characters (|) to define columns, a separator row with dashes to separate headers from data, and optional colons (:) in the separator to control column alignment.
How do I control column alignment in Markdown tables?
In the separator row, use :--- for left alignment, :---: for center alignment, and ---: for right alignment. In this tool, click the alignment button (L/C/R) in each column header to cycle through options — the separator row is generated automatically.
Is there a maximum number of columns or rows?
This tool supports 2–10 columns and 1–20 rows for the interactive grid. The underlying generateMarkdownTable function has no hard limit, but most Markdown renderers handle any reasonable table size. For large tables, consider using the CSV Formatter tool instead.
How do I include a pipe character (|) inside a table cell?
Escape it with a backslash: \|. Alternatively, you can use the HTML entity | in some renderers. Most Markdown parsers will interpret \| as a literal pipe inside a cell.
What is the difference between a Markdown table and an HTML table?
Markdown tables are human-readable plain text that gets rendered by Markdown processors — great for documentation, READMEs, and wikis. HTML tables offer more control over styling, colspan/rowspan, and accessibility attributes. Use the Output dropdown in this tool to switch between both formats.
Can I import an existing Markdown table to edit it?
Yes. Click the "Import" button, paste your existing Markdown table, and click "Parse & Load". The tool will parse the table structure and populate the grid so you can edit and re-generate. The parser handles standard GFM table syntax with leading and trailing pipes.