🔒 100% private — runs in your browser, nothing is uploaded

TSV to Markdown Table Converter

Turn tab-separated text — including a range copied straight from a spreadsheet — into a clean GitHub-flavoured Markdown table, with a live preview.

The conversion itself is small — tabs become pipes and a separator row goes under the header — and the value of the tool is in the three details that break naive versions. First, cells containing a pipe character are escaped as \|, because an unescaped pipe inside a cell silently splits one column into two in the rendered table. Second, line breaks inside a cell become spaces, because a GitHub-flavoured Markdown row must live on a single line. Third, ragged rows are normalised to the widest row’s column count, so a short row gains empty cells instead of shifting the rest of the table sideways. Worked example: the sample’s three columns and four rows come out as a header row “| Name | City | Score |”, a separator “| --- | --- | --- |” (or the centered / right forms you pick), and one padded line per person.

The table you paste is converted in page memory on your device only: it is never uploaded, never stored and never put into a link, and refreshing the page clears it. Pipe characters inside a cell are escaped as \| so they cannot break the table, and line breaks inside a cell become spaces, because a Markdown table row must live on one line.

Quick answers

How do I turn spreadsheet cells into a Markdown table?

Select the cells in Excel, Google Sheets or Numbers, copy them, and paste here — the clipboard delivers them as tab-separated values. Leave the header option on, pick an alignment, and copy the GitHub-flavoured Markdown out; the preview shows the rendered table before you commit to it.

Pipes inside cells are escaped automatically and ragged rows are padded to the widest row, the two failures that break hand-rolled conversions.

What is the separator row in a Markdown table?

The line of dashes directly under the header — | --- | --- | for two left-aligned columns. It is what tells a Markdown renderer that the row above it is a header, and its colons set alignment: :---: centers a column and ---: right-aligns it. This converter writes it for you from the alignment picker.

With padding on, the dashes stretch to the column width so the raw source stays aligned; the rendering is the same either way.

How to use

  1. Copy a range of cells in Excel, Google Sheets or Numbers and paste it here — the clipboard carries the cells as tab-separated values, which is exactly what this page expects. Pasting a .tsv file’s contents works the same way.
  2. Leave “First row is the header” on for spreadsheet data (the header becomes the Markdown header row with the separator line under it), or turn it off and the converter generates Column 1, Column 2… headers instead.
  3. Choose the alignment (left, center or right) and whether to pad columns to equal width — padding keeps the raw Markdown readable as plain text; unpadded is more compact.
  4. Check the rendered preview, then copy the Markdown or download it as a .md file, ready for a README, an issue, a wiki or a notes app.

About this tool

Why a dedicated TSV page when general table converters exist? Because the spreadsheet workflow is the use case: nobody exports a TSV file on purpose half as often as they copy cells, and the clipboard format is TSV whether the user knows the word or not. This page is shaped around that paste — no delimiter picker to get wrong, the header assumption spreadsheet data actually has, and a rendered preview so a broken table is caught here rather than after it is pasted into a pull request. The neighbouring Markdown tool on this site goes the other directions (Markdown to HTML, and HTML back to Markdown); this converter is the data-in door, turning spreadsheet rows into Markdown in the first place.

How it works

There is no arithmetic — the mapping is structural: each input line becomes one table row, each tab becomes a column boundary, the first row (or a generated Column 1… header) is followed by a separator row of dashes / colons that encodes the alignment, and every cell is escaped (pipes) and flattened (line breaks to spaces) so the output is valid GitHub-flavoured Markdown.

What this tool can’t do

TSV has no quoting standard in practice: a cell that itself contains a tab character cannot be represented in pasted TSV, and this converter treats every tab as a boundary. If your source data has tabs inside values, export it as CSV and use a CSV-aware tool instead.

Markdown tables are flat: merged cells, multi-line cell content and nested tables have no GitHub-flavoured equivalent and cannot survive the conversion — line breaks become spaces by design.

Extremely wide pastes (dozens of columns) remain valid Markdown but render as a horizontally scrolling table almost everywhere; consider extracting fewer columns first.

Worked examples

Spreadsheet paste: Four copied rows (Name / City / Score plus three people) → a padded, left-aligned table with the header and separator written for you, previewed rendered below the output.

Pipe inside a value: A cell reading “a|b” comes out as “a\|b” — rendered as a literal pipe, with the table’s columns intact.

No-header data: With the header option off, two pasted rows of numbers gain a generated “Column 1 | Column 2” header and both rows appear as data.

Markdown separator row — alignment forms

SeparatorAlignmentUse it for
---LeftText columns, the default almost everywhere
:---:CenterShort status / flag columns
---:RightNumbers, so digits line up by place value

Frequently asked questions

Why does pasting from Excel work without choosing a format?

Because spreadsheet copy-and-paste is tab-separated by definition: when you copy cells in Excel, Google Sheets or Numbers, the clipboard text places a tab between columns and a line break between rows. That text is TSV, so it pastes straight into this converter with nothing to configure.

What happens to pipe characters and line breaks inside cells?

A pipe inside a cell is escaped as \| so the rendered table keeps its columns, and a line break inside a cell is replaced with a space, because a Markdown table row cannot span lines. Both changes are shown in the output exactly as they will be pasted — no silent edits beyond those two documented ones.

What if my data has no header row?

Turn off “First row is the header”. The converter then generates Column 1, Column 2… as the header (Markdown tables require a header row) and treats every pasted row as data. With the option on, the first row becomes the header and is not repeated as data.

Is the padded or unpadded output better?

They render identically. Padded output aligns the pipes in the raw text, which is kinder when people read or edit the Markdown source; unpadded output is shorter and diffs more cleanly in version control. Pick by who will read the source, not by how it renders.

📦 Embed this tool on your site

<iframe src="https://verystep.com/embed/tsv-to-markdown-table/" title="TSV to Markdown Table Converter" width="100%" height="520" loading="lazy" style="border:0"></iframe>

Free to use. The embed shows a small "Powered by Verystep" link.

First time embedding? Read the step-by-step guide →

More free tools