FA Dev Tools

Table Converter

Read the input as rows of cells, then write those rows back out in another format. Lines groups every N lines into one row, CSV reads comma separated values with quoted fields, TSV reads tab separated values, and Markdown reads a pipe table back into cells. Auto picks one of those from what you paste. Output as a Markdown table, CSV, TSV, or your own separator.

Quick

Input format
Output format

Input options

Separators

Not used by the current input format — editing these switches it to Custom separator.

How many consecutive lines form one row — 3 turns every 3 lines into a row of 3 cells.

Output options

0 lines · 0 chars
0 rows × 0 columns · 0 lines
How the output renders

Nothing to preview yet — add input to build a table.

Instructions

Reads your text as rows of cells and writes those same rows back out in another format.

  1. Start from a Quick preset (CSV to Markdown, TSV to Markdown, …) — it sets both formats in one click.
  2. Paste your data into Input.
  3. Input format starts on Auto, which picks Markdown (a | --- | row), TSV (tabs), CSV (commas) or Lines, and shows its pick above the box. Choose one yourself if the guess is wrong. Lines groups every N lines into a row, CSV handles quoted fields, TSV is tab-separated, Markdown reads a pipe table, Custom separator splits on any of the separators you type (add as many as you need), plus a tab or a line break when you tick Tab or New line. Untick First row is header in Input options when the first row is already data.
  4. Pick the Output format and its options — Header row (off for data only), Markdown alignment, padded columns.
  5. Copy the result out of the Output box.

Tips

  • CSV input understands quoted cells, so "Bell, Bob" stays one cell.
  • Markdown input splits a cell that holds tabs, so a TSV header pasted into the first row of a pipe table still lines up.
  • For Lines input, set Lines per row to the number of fields each record occupies.
  • A tab cannot be typed into a text field — tick Tab under the input separators, or use the Tab button beside the output separator. With New line ticked, a line break ends a cell and Cells per row says where rows end.
  • The row and column count under the output is the quickest check that the input parsed the way you expected.
  • With Markdown output, the Markdown preview under the boxes renders the table — the fastest way to spot a stray column or a wrong header row.
  • Hit Example and click any preset: it loads a matching sample table and converts it straight away.

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>.