Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>CSV to Markdown Table (and back)New to Visual Studio Code? Get it now.
CSV to Markdown Table (and back)

CSV to Markdown Table (and back)

okstartup

|
1 install
| (0) | Free
Convert CSV/TSV to a Markdown table and back again. Correct RFC 4180 quote handling, automatic delimiter detection, aligned output. No telemetry, no network, no account.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CSV to Markdown Table (and back)

Convert CSV/TSV into a Markdown table — and convert a Markdown table back into CSV or TSV.

Works on the current selection, or the whole file when nothing is selected.

Commands

Command What it does
Convert CSV/TSV to Markdown Table Delimited text → aligned Markdown table
Convert Markdown Table to CSV Markdown table → CSV
Convert Markdown Table to TSV Markdown table → TSV (paste straight into a spreadsheet)
Align Markdown Table Columns Re-pad an existing table so the source lines up

Available from the Command Palette and from the editor right-click menu.

Why another one of these

Most converters split on commas. That quietly corrupts real data:

name,note
apple,"red, ripe"
pear,"say ""hi"""

This extension parses per RFC 4180, so quoted delimiters, escaped quotes ("") and newlines inside quoted fields all survive. It also:

  • detects the delimiter (comma, tab, semicolon, pipe) instead of assuming commas
  • escapes | and newlines in cells so the generated table is always valid Markdown
  • squares off ragged rows rather than emitting a broken table
  • converts back, which most alternatives do not

Settings

Setting Default Meaning
csvMarkdownTable.alignColumns true Pad cells so columns line up in the source
csvMarkdownTable.firstRowIsHeader true Use row 1 as the header; when off, headers are generated

Privacy

No telemetry. No network requests. No account. No data collection of any kind. Everything runs locally on the text in your editor.

Built with AI assistance.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft