Data ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Data Tools

Table Generator for Markdown, HTML and ASCII

Turn CSV, TSV or cells copied from Excel into a Markdown, HTML or plain-text ASCII table, with quoted fields, escaped pipes and optional column alignment.

View all tools
ResultUpdates as you type
| Product      | Price | Stock |
| ------------ | ----- | ----- |
| Notebook, A5 | 12.50 | 120   |
| Pen          | 1.20  | 500   |
| Desk lamp    | 24.00 | 18    |

3 data rows × 3 columns, read as comma-separated.

How to use Table Generator for Markdown, HTML and ASCII

Paste CSV, TSV or cells copied from Excel or Google Sheets, pick Markdown, HTML or plain-text output, and the table code updates as you type. Set the column alignment if needed, then press Copy result.

  1. Paste your table dataPaste rows into Table data. Commas, tabs, semicolons and pipes are detected, so Excel cells work as they are.
  2. Pick a format and alignmentChoose Markdown, HTML or ASCII output, then an alignment such as Right-align number columns.
  3. Copy the table codeCheck the row and column count under the result and press Copy result to paste it into a README, CMS or email.

Example: CSV to a Markdown table

The sample input has the header Product,Price,Stock and the row "Notebook, A5",12.50,120. Because the first field is quoted, its comma stays inside one cell and the Markdown output reads | Notebook, A5 | 12.50 | 120 |. With Pad Markdown columns to line up ticked, spaces are added so the pipes align in the source. Choosing Right-align number columns turns the separator under Price and Stock into ----:, which GitHub and most Markdown renderers display right-aligned. Pipes inside cells are written as \| and line breaks as br tags, so they cannot break the table.

Markdown, HTML or plain text: which to choose

Markdown tables suit GitHub READMEs, issues, wikis and note apps. The HTML option produces a table element with thead and tbody sections, escapes ampersands, angle brackets and quotes, and adds a text-align style when you set an alignment, ready for a web page or CMS. The plain-text option draws borders with plus signs, hyphens and pipes for code comments, terminal output or plain-text email; Chinese, Japanese and Korean characters count as two columns, so the borders still line up in a monospaced font. Untick First row is the header if your data has none: HTML then puts every row in tbody, and Markdown gets Column 1, Column 2 and so on, because a Markdown table needs a header row.

Accuracy and data handling

Keep the original data and spot-check fields, types and delimiters before using an important conversion. The calculation runs in your current browser; the tool code does not send the input to a processing API.

FAQ

How do I make a table in Markdown?

Write one row per line with cells separated by pipes, then put a separator row of three or more hyphens under the header. Pasting CSV or spreadsheet cells here builds the header, separator and rows for you.

Can I paste cells straight from Excel or Google Sheets?

Yes. Copied cells arrive as tab-separated text, and leaving Delimiter on Detect automatically splits them into the right columns. Blank rows are skipped and short rows are padded with empty cells.

How do I right-align numbers in a Markdown table?

Set Column alignment to Right-align number columns. Any column whose values are all numbers, including currency symbols, thousands separators or percentages, gets a ---: separator; other columns are left as they are.

More Data Tools

Related tools