About converting tables between CSV, TSV and Markdown
What the converter does
The converter reads your text as rows of cells, then writes the same rows out in another format. It reads CSV, TSV, Markdown pipe tables, plain lines (every N lines become one row) and a custom separator, where a cell ends at any of the separators you type. It writes Markdown, CSV, TSV, or cells joined with your own separator.
With Input format on Auto, it guesses the format from what you paste. A Markdown delimiter row such as | --- | wins, then tabs, then commas; anything else is read as one value per line. The guess is shown above the input, and you can override it. The conversion runs in your browser as you type, and the row and column count under the output is the quickest check that the input was read the way you meant.
CSV quoting and RFC 4180
CSV has no single strict standard, but RFC 4180 describes the common form. Fields are separated by commas and records by line breaks. A field is wrapped in double quotes when it contains a comma, a double quote or a line break, and a quote inside it is doubled: She said "hi" becomes "She said ""hi""".
The CSV reader here follows those rules. "Bell, Bob" stays one cell, a doubled quote inside quotes is a literal quote, and a quoted field can run over several lines. An unclosed quote is reported as an error instead of silently swallowing the rest of the text. When writing CSV, a cell is quoted only when it needs to be, and rows end with a plain line feed rather than the CRLF the RFC describes.
In many European locales, Excel saves “CSV” with semicolons, because the comma is the decimal separator there. Read those files with Custom separator set to ;. Custom separators do no quote handling, so a quoted cell that contains a semicolon will split.
TSV and spreadsheets
When you copy cells from Excel or Google Sheets, the clipboard holds tab-separated text: one row per line and a tab between cells. That is why Auto prefers tabs to commas, since spreadsheet cells often contain commas but rarely tabs. Paste a selection here, choose Markdown output, and you have a table for a README, a pull request or a wiki page. Going the other way, Markdown to TSV gives text you can paste into a spreadsheet, with each cell in its own column.
TSV is read literally, with no quoting, so a tab or line break inside a cell splits it. Some web dashboards and SQL clients copy a grid with a tab-separated header and then every body cell on its own line. When the text has exactly that shape, the reader groups the cells back into rows as wide as the header.
Markdown tables
Pipe tables come from GitHub Flavored Markdown and also work on GitLab and in many site generators and note apps. A table is a header row, a delimiter row of dashes, then the data rows. Colons in the delimiter row set each column's alignment: :--- left, ---: right and :---: centre. GitHub only renders a table when the header and delimiter rows are there, so keep Header row on for Markdown you will paste there. If the input has no header, the tool writes Column 1, Column 2 and so on.
A pipe inside a cell would end the cell early, so the tool escapes it as \| and a backslash as \\. A line break inside a cell, which a pipe table cannot hold, becomes <br>. Pad columns lines up the pipes so the raw text is readable too, and the preview below the output shows how the table renders. Reading Markdown undoes those escapes and skips the delimiter row.
Frequently asked questions
- How do I turn an Excel or Google Sheets range into a Markdown table?
- Select the cells, copy them, and paste into Input. Auto detects TSV. Choose Markdown as the output format and copy the result. If the selection has no column names, untick First row is header and the tool adds Column 1, Column 2 and so on.
- Why are my CSV columns not splitting correctly?
- The file most likely uses another separator, often semicolons from a European Excel export or tabs. Check the format shown above the input and pick CSV, TSV or Custom separator yourself. An unclosed double quote also stops CSV parsing, and the error says so.
- Can a cell contain commas or line breaks?
- In CSV, yes, as long as the cell is wrapped in double quotes. TSV and custom separators have no quoting, so a tab, separator or line break inside a cell splits it. In Markdown output a line break inside a cell becomes <br>.