Skip to content
UniKit

Delimited text to table

Split CSV / TSV / custom or regex delimited and fixed-width text into table data with RFC 4180 quotes and escapes, an optional header row and column padding, then output TSV, CSV, a Markdown table or a JSON array with row and column stats.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Delimited text

Literal delimiters follow RFC 4180: delimiters and line breaks inside quotes belong to the same cell, and "" means one literal quote.

Table data

Rows are split, padded to the same column count and then rendered; every cell stays a string, so 001 never becomes 1.

Enter delimited text to turn it into a table

What this tool does

  • Turn CSV / TSV exports into table data and re-render it as a Markdown table or a JSON array for docs, code or a database
  • Check the row and column counts plus empty cells of a delimited file to find rows that are missing or have extra columns

Example

Input

name,dept,note
"Li, Wei",R&D,"says ""hi"""

Output

| name | dept | note |
| --- | --- | --- |
| Li, Wei | R&D | says "hi" |

Delimiter=comma, output=Markdown, "first row is a header" enabled: the comma inside quotes does not split the cell and "" collapses to one quote.

Frequently asked questions

How is this different from splitting on a fixed string?

This tool applies RFC 4180 quoting: when a field starts with a quote, **delimiters and line breaks inside the quotes are not separators**, so `"Li, Wei"` is one cell rather than two, and `""` means a literal quote. Splitting blindly on a fixed string is the "fixed separator" approach and turns a quoted CSV row into extra columns. You can also set an escape character (for example `\`). Note: the regex and fixed-width modes do not handle quotes, see the next question.

Do the regex and fixed-width modes handle quotes?

No. The regex mode splits every line with the source you provide (for example `\s{2,}` for runs of whitespace) and the fixed-width mode cuts columns by a width table such as 10,12,8 measured in code points. Both are "cut by rule" modes without field escaping, so quotes are ordinary characters. Choose comma / tab / semicolon / pipe / custom literal when you need quoting.

What happens when rows have different column counts?

The widest row defines the column count and shorter rows are padded with the fill value (empty string by default). Those padded cells are counted in "empty cells" so you can tell whether columns are genuinely missing. A header row only affects the Markdown separator and the JSON object keys; the row itself is never dropped.

Are numbers or leading zeros changed?

No: every cell is treated as a string, so `0012`, `1.10` and `+86` stay exactly as written, including in the JSON output (which only becomes key/value objects when a header is set). This avoids the classic CSV problem of losing leading zeros in zip codes or employee ids.

Keywords:delimited text to tablecsv parsertxt-column

Related tools