CSV, JSON, Markdown & LaTeX Table Converter
Paste spreadsheet rows, CSV, JSON, HTML, or GitHub Markdown tables, align or sort columns, and export clean Markdown, LaTeX booktabs, HTML, SQL, or JSON.
Runs in your browser. Nothing is uploaded.
Paste or open your table
Needs fixing
Per-column alignment (Markdown, LaTeX & HTML)
Converted output & live table preview
- 5 × 4 Columns × data rows 20 data cells + 5 headers
- RFC 4180 CSV Detected input Auto-detected from pasted text
- 3 left · 2 right Column alignments Numeric columns right-aligned
- 1 escaped Special characters Escaped 1 pipe or line-break character (\| / <br>)
Saves query-benchmarks.md (Markdown (Padded), UTF-8).
Rendered table preview
5 columns · 4 data rows
| Engine | Run_ID | Filter_Rule | Req_per_sec | Error_Rate |
|---|---|---|---|---|
| DuckDB | 0041 | tier = 'pro' | 'team' | 18450 | 0.02% |
| PostgreSQL | 0042 | owner = 'O'Reilly' | 15920 | 0.01% |
| ClickHouse | 0043 | cost <= $20 & fast | 46800 | 0.05% |
| SQLite WAL | 0044 | mode = 'read_only' | 12300 | 0.00% |
How to use
- Paste cells from Excel or Google Sheets, paste CSV, Markdown, JSON, or HTML markup, or open a file up to 5 MB.
- Leave Source table format on Auto-detect, or lock a specific parser when testing tricky delimiters.
- Tick Auto-right-align numeric columns, Transpose rows ↔ columns, or Sort rows by column to arrange the grid.
- Adjust individual columns between Left (
:---), Center (:---:), or Right (---:) alignment when needed. - Pick Markdown, LaTeX booktabs, LaTeX
\hline, Semantic HTML, JSON Objects, SQL CREATE + INSERT, CSV, or TSV. - Click Copy output, Download the matching file extension, or Copy link to share your exact table state.
Worked example
Input
A 4-row CSV benchmark containing leading-zero IDs (0041), a pipe filter, O'Reilly quotes, $20, %, and underscores.
Settings
Auto-right-align numeric columns ticked, exporting first to Markdown (Padded) and then to LaTeX booktabs.
Result
Right-aligns Req_per_sec and Error_Rate, keeps 0041 left-aligned, escapes \| in Markdown, and escapes \%, \$, \&, and \_ in LaTeX.
Raw pipes inside filter expressions split a Markdown row into extra columns unless each vertical bar is escaped.
CSV cell: tier = 'pro' | 'team' → Markdown: tier = 'pro' \| 'team' · LaTeX: cost <= \$20 \& fast
In LaTeX, an unescaped percent sign turns the rest of the table row into a comment and drops the line-ending \\ command.
Switching to SQL CREATE + INSERT turns O'Reilly into 'O''Reilly' and keeps 0041 as TEXT so leading zeros survive.
How it works
Five-format state-machine parsing
CSV and spreadsheet TSV inputs pass through an IETF RFC 4180 parser that keeps quoted line breaks and doubled "" quotes intact.
Markdown inputs follow the GitHub Flavored Markdown specification, reading :---, :---:, and ---: alignment markers while unescaping \| pipes.
HTML inputs read <th> and <td> cells, expand colspan and rowspan attributes, and decode character entities (MDN HTML table reference).
Safe character escaping for LaTeX, SQL, and JSON
LaTeX booktabs output uses \toprule, \midrule, and \bottomrule without vertical rules, following the CTAN booktabs manual.
Every cell passes through a single-pass LaTeX escaper covering all ten active characters: \, &, %, $, #, _, {, }, ~, and ^.
JSON and SQL exports treat multi-digit strings starting with zero (such as 0041) as text identifiers rather than stripping leading zeros.
Sources checked 30 November 2026.
FAQ
How do I paste cells directly from Excel, Numbers, or Google Sheets?
Highlight your spreadsheet range, press Copy, and paste straight into Source table data. Spreadsheets copy cells separated by tabs, which Auto-detect reads immediately as Spreadsheet TSV.
What is the difference between LaTeX booktabs and LaTeX \hline?
LaTeX booktabs uses \toprule, \midrule, and \bottomrule with cleaner vertical spacing and no vertical bars; add \usepackage{booktabs} to your preamble. Pick LaTeX \hline when your document template forbids extra packages.
Why are codes like 0041 or 07401 kept left-aligned and quoted as strings?
Whole numbers with leading zeros represent postal codes, invoice numbers, or run identifiers rather than quantities. Keeping them as strings prevents JSON and SQL imports from turning 0041 into 41.
What if my CSV has duplicate rows or needs an .xlsx Excel download?
Open CSV Cleaner & CSV to Excel to deduplicate rows, pick columns, and save an Excel .xlsx workbook. To compare two versions of a sheet by key column, use Compare Two Spreadsheets.
Can I convert a table inside a PDF or pretty-print nested JSON first?
Pull rows out of a text-based PDF first with PDF Table Extractor, then paste the CSV here. For deeply nested API payloads or JSON Lines, check syntax first in JSON Formatter & Validator.
Is any spreadsheet or database data sent to a server?
No. Parsing, sorting, transposing, and exporting run inside your browser, so your rows never leave your device.
Step by step: how to convert Excel or CSV data into clean Markdown and LaTeX booktabs tables.
Updated