Skip to main content
NeatUtility

CSV to Markdown & Markdown to CSV Table Converter

CSV & Tables100% Client-Side
Ready
CSV
0 lines0 chars
0 B / 4.77 MB
About this tool, examples & FAQ

Convert between CSV or TSV spreadsheets and GitHub Flavored Markdown (GFM) pipe tables online. Format neat, readable ASCII tables with left, center, or right column alignment, escaped pipe characters, and formula injection protection.

Key facts

Verified capabilities and limits of this utility
OperationsCSV → Markdown Table and Markdown → CSV
AlignmentsLeft (:---), Center (:---:), and Right (---:)
Spacing & EscapingPretty padding alignment and automatic pipe (\|) escaping
Maximum Input5 MB
Execution Deadline3 s

How to use

  1. Paste your CSV records or Markdown pipe table into the editor.
  2. Choose your conversion direction: CSV → Markdown or Markdown → CSV.
  3. Select your preferred column alignment (left, center, or right) and delimiter.
  4. Click Convert (or press Ctrl/Cmd + Enter) to generate the formatted table.
  5. Copy to clipboard or download as .md or .csv.

Examples

CSV to Markdown Table Conversion

Input

item,cost
Laptop,1200
Mouse,25

Example output

| item   | cost |
| :----- | :--- |
| Laptop | 1200 |
| Mouse  | 25   |

Markdown Table to CSV Conversion

Input

| user | role |
| :--- | :--- |
| Alex | Admin |
| Sam | Dev |

Example output

user,role
Alex,Admin
Sam,Dev

Edge cases

Literal pipe characters in cell values

Because Markdown tables use the pipe character (|) to separate columns, raw pipes inside data fields must be escaped as \| so parser engines do not split the field into multiple columns.

Markdown alignment markers

GFM tables indicate column text alignment in the separator row beneath headers: ':---' for left, ':---:' for center, and '---:' for right. Downstream markdown renderers format table cells accordingly.

Spreadsheet formula injection protection

When extracting CSV tables from untrusted Markdown documentation, cells starting with '=', '+', '-', or '@' are prefixed with an apostrophe to prevent macro execution in Excel or Calc.

How it works

  1. Parses CSV cells with PapaParse or extracts cells from Markdown lines by splitting on unescaped pipes.
  2. Calculates maximum column widths for clean visual whitespace padding.
  3. Formats header, divider, and body rows according to GFM table standards.
  4. Processes everything client-side inside a sandboxed Web Worker without sending data to servers.

Frequently asked questions

What is a GitHub Flavored Markdown (GFM) table?

A GFM table is an extension to the CommonMark specification that creates tabular displays in READMEs, pull requests, and documentation using pipe (|) and dash (-) characters.

Can Markdown tables exist without header rows?

Standard GFM specification requires at least a header row and a separator row. When converting CSVs without headers, synthetic column names (Column 1, Column 2) are automatically generated to maintain valid Markdown syntax.

Is my table data sent to any third-party AI or backend server?

No. All parsing, alignment, and formatting happens entirely in your local browser. No data leaves your machine.

References