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