Skip to main content
UFOZoo

CSV to Markdown Table: Convert CSV/TSV to Markdown Online

Convert CSV or TSV data into clean, ready-to-use Markdown tables online for documentation and GitHub, with custom delimiters.

Updated 2026-08-26

Related Tools

Features

  • Convert CSV, TSV, or custom-delimited data to Markdown tables
  • Auto-detect delimiter (comma, tab, semicolon, pipe)
  • Custom delimiter support for non-standard formats
  • Column alignment options (left, center, right)
  • First row as header toggle
  • Real-time Markdown output as you type
  • Visual table preview alongside Markdown output
  • Copy Markdown to clipboard with one click
  • Save as .md file
  • Open CSV/TSV files directly
  • GitHub-flavored Markdown table syntax

How to Use

  1. 1Paste CSV or TSV data into the input area.
  2. 2The tool auto-detects the delimiter, or select one manually.
  3. 3Toggle 'First row is header' if your first row contains column names.
  4. 4Click column alignment buttons to set left/center/right alignment per column.
  5. 5View the Markdown output in the code block below.
  6. 6Preview the table visually to verify formatting.
  7. 7Click 'Copy' to copy the Markdown table to your clipboard.
  8. 8Click 'Save .md' to save the Markdown file.
  9. 9Open a CSV file directly using the Open button.
  10. 10Use this tool to create tables for GitHub READMEs, documentation, or Markdown files.

Frequently Asked Questions

What is the difference between CSV and TSV?

CSV (Comma-Separated Values) uses commas as delimiters. TSV (Tab-Separated Values) uses tabs. TSV is better for data containing commas, while CSV is more universally supported. This tool handles both formats.

How do I convert CSV to a Markdown table for GitHub?

Paste your CSV data, ensure 'First row is header' is checked, and copy the Markdown output. GitHub automatically renders Markdown tables in READMEs, issues, and comments.

Can I use custom delimiters?

Yes. Select the delimiter from the dropdown: comma, tab, semicolon, or pipe. The auto-detect feature will try to identify the most likely delimiter from your input.

How do I align columns in the Markdown table?

After pasting data with headers enabled, click the column alignment buttons (left/center/right) above the output. Colons in the separator row control alignment: :--- for left, :---: for center, ---: for right.

Does this tool handle quoted fields?

Yes. Fields enclosed in double quotes are parsed correctly, including fields that contain commas, newlines, or escaped quotes (doubled quotes like "").

Can I paste data from Excel or Google Sheets?

Yes. Copy cells from Excel or Google Sheets and paste directly into the input area. The tool will auto-detect the tab delimiter. Make sure to select 'First row is header' if applicable.

What Markdown table format does this tool generate?

The tool generates GitHub-Flavored Markdown (GFM) table syntax, which is the standard format supported by GitHub, GitLab, Bitbucket, and most Markdown renderers.

Can I paste the table into Obsidian or VS Code?

Yes. The tool outputs GitHub-Flavored Markdown, which Obsidian renders natively and VS Code shows in its Markdown preview. Paste the copied table directly into either. The same syntax also works in GitHub/GitLab READMEs, Notion, and most other Markdown renderers.

How do I convert a TSV file to a Markdown table?

Paste the tab-separated data. The tool auto-detects the tab delimiter (or pick Tab manually), keep 'First row is header' on when the first line holds column names, then copy the output. Cells copied from Excel or Google Sheets arrive as TSV, so the same flow covers spreadsheet data.

Can I convert Markdown tables back to CSV?

This tool focuses on CSV-to-Markdown conversion. For Markdown-to-CSV, you can use our other tools or simply copy the table from Markdown and paste into a spreadsheet.

What if my CSV has inconsistent column counts?

The tool pads shorter rows with empty cells to match the maximum column count. This ensures the Markdown table has consistent columns throughout.

Why does my table look wrong after converting?

Usually because of commas or quotes inside fields. A comma inside a field must be wrapped in quotes in the CSV, otherwise the converter treats it as a column separator. Also check the delimiter setting: if your file uses semicolons or tabs, select the right delimiter before converting.

Can I convert a CSV file with a header row?

Yes. The first row is treated as the table header by default and becomes the Markdown header row. If your CSV has no header, the converter can generate a numbered header instead. Check the header option before converting.

Can I do this from the command line instead?

Yes, for one-off jobs this page is fastest, but for scripts: install miller and run mlr --icsv --omd cat data.csv for a streaming conversion, or use Python: python3 -c "import pandas as pd; print(pd.read_csv('data.csv').to_markdown(index=False))". Both produce the same GFM pipe tables this tool outputs, so the results are interchangeable.

My table breaks when a cell contains a pipe (|) character. Why?

In GitHub-flavored Markdown the pipe is the column separator, so a bare | inside a cell splits the row into extra columns. Escape it as \| inside the cell (GitHub, Obsidian and VS Code all honor that), or replace it with the HTML entity |. Pipe-separated source data is the most common trigger, so check the raw CSV before pasting.