ModernCalcs

CSV to Markdown Table

Convert CSV data to a GitHub-flavored Markdown table. Columns are padded for alignment. Preview the rendered table or copy the raw Markdown.

CSV Input

| name    | age | city          | role     |
| :------ | :--- | :------------ | :------- |
| Alice   | 30  | New York      | Engineer |
| Bob     | 25  | San Francisco | Designer |
| Charlie | 35  | Austin        | Manager  |

CSV to Markdown Table: Documentation-Ready Tables in Seconds

Markdown tables are essential for READMEs, wikis, pull request descriptions, and documentation sites. This tool converts your CSV to a properly formatted GFM table — columns padded, alignment markers set, and pipe characters in values escaped — ready to paste directly into any Markdown editor.

Formula
| col1 | col2 | col3 | |:-----|:----:|-----:| | val | val | val |

Alignment is set by colon placement: :--- left, :---: center, ---: right. Pipe characters inside cell values are escaped as \\|.

GitHub-Flavored Markdown Tables

GFM tables require at minimum a header row, a separator row with dashes, and one or more data rows. The separator row controls alignment via colon placement. This tool generates fully compliant GFM syntax that renders correctly on GitHub, GitLab, Bitbucket, Notion, and most Markdown editors.

Column Alignment

Left alignment is conventional for text; right alignment is conventional for numbers; center is used for status or boolean columns. The selected alignment applies to all columns. If you need mixed alignment (e.g. left for names, right for prices), edit the separator row after pasting — it's a single-line change.

Live Preview

The Preview tab renders the generated table the same way GitHub would. Use it to verify column widths and alignment look correct before copying, especially for wide tables with many columns.

Practical Examples

Adding an API Parameter Table to a README

Turn an api-params.csv into a clean Markdown reference table.

  • 1.Paste CSV with columns: Parameter, Type, Required, Description
  • 2.Select 'Left' alignment for text readability
  • 3.Preview to confirm layout
  • 4.Copy and paste into README.md or a PR description

What Gets Generated

  • Valid GFM table with header and separator row
  • Left, center, or right column alignment options
  • Pipe characters in cell values escaped as \|
  • Live rendered preview before copying

Good Use Cases

  • API parameter or response field tables in README files
  • Feature comparison tables in pull request descriptions
  • Data summaries in GitHub wikis or Notion pages
  • Structured reference tables in Obsidian or Confluence

Frequently Asked Questions

What is GFM Markdown table syntax?

GitHub-Flavored Markdown (GFM) tables use | as column separators and a separator row of dashes under the header. Colons in the separator row control alignment: :--- left, ---: right, :---: center.

Can I preview the rendered table?

Yes — toggle to the Preview tab to see the table as it would appear rendered in GitHub, a Markdown editor, or documentation site.

Are pipe characters in cell values escaped?

Yes. Pipe characters (|) inside cell values are escaped as \| to prevent them from breaking the table structure.