RFC 4180 CSV & TSV Parsing Without Broken Columns
Naive comma splitting (line.split(",")) breaks the moment your dataset contains currency amounts ("$1,250.00"), city names ("Austin, TX"), or escaped quotes. ConvertToMD implements a proper RFC 4180 character-level CSV and TSV parser that respects quoted fields, escaped double-quotes (""), embedded newlines, and auto-detected tab or semicolon delimiters.
Columns are automatically padded with matching spaces so the raw Markdown source looks aligned and readable even inside monospaced code editors like VS Code or Vim—not just after rendering.
Delimiter & Quoting Edge Cases Handled
| Input Edge Case | Parser Behavior | Markdown Result |
|---|---|---|
Commas inside quotes ("A, B") | Parsed as a single intact field | Stays in one Markdown cell |
Escaped quotes (""Pro"") | Unescaped cleanly to "Pro" | Human-readable text output |
| Tab-delimited Sheets copy-paste | Auto-detects \t TSV delimiter | Zero manual delimiter switching |
| Rows shorter than header row | Auto-padded with empty cells | Valid GFM column count everywhere |
CSV Converter vs. Interactive Table Generator
Use CSV to Markdown when transforming .csv / .tsv data exports directly into documentation or AI prompts. If you want to toggle left, center, and right column alignments or insert and reorder rows visually, open the CSV output directly inside our Markdown Table Generator.