Skip to content
Data2026-08-186 min read

The Complete Guide to Table Format Conversion: Excel, CSV, JSON, Markdown, and HTML

Why Table Format Conversion Is So Common

In a developer's daily work, the same tabular data keeps traveling between formats: product managers hand you Excel, the API expects JSON, documentation is written in Markdown tables, web scraping yields HTML tables, and database imports call for CSV or SQL. Manual copy-pasting is not only slow but also error-prone around quoting, commas, and encoding details.

This guide maps the five most-used table formats, the conversion paths between them, and the real boundaries — delimiters, headers, empty cells, and merged cells. Matching tools run entirely in your browser with no uploads.

Characteristics of Each Format

Excel (.xlsx)

The most universal spreadsheet format, supporting multiple sheets, styling, and formulas. Great for manual editing and reporting, but parsing requires dedicated libraries (such as SheetJS), and complex structures like merged cells often break naive parsers.

CSV

A plain-text table representation — commas separate columns, newlines separate rows. The lingua franca of data import/export. The pitfall: fields containing the delimiter must be wrapped in double quotes, and quotes inside fields must be escaped by doubling them — RFC 4180, which many hand-rolled converters miss. European locales often use semicolons; paste-from-Excel workflows frequently use Tab (TSV).

JSON

The data interchange format of the program world. An array of objects maps naturally to API responses and frontend rendering. When converting tables, the first row typically becomes the keys; without a header row you need synthetic keys, and empty cells may be "" or null depending on the consumer.

Markdown Tables

The standard format for technical docs, READMEs, and issue comments, built from pipes and dashes. The limitation: no cell-level line breaks or complex structures; a literal | inside a cell must be escaped on export.

HTML Tables

The web's native table markup, carrying style and semantic structure. When extracting data from web pages, HTML tables are the most common source — without expanding colspan / rowspan into a full matrix, later columns misalign.

Conversion Paths and Matching Tools

Starting from Excel: Four Export Directions

Excel is the most common data source, and four directions cover most needs:

  • Excel to CSV: for database imports and ETL pipelines. Multi-sheet selection with standards-compliant quote escaping — Excel to CSV
  • Excel to JSON: feed frontend or API directly, headers become keys — Excel to JSON
  • Excel to HTML: embed in web pages or email bodies, preserving headers and alignment — Excel to HTML
  • Excel to Markdown: drop into READMEs and technical docs — Excel to Markdown

The Reverse: Generating Excel Files

When program-side data must be delivered to business teams, you often need to produce .xlsx files:

  • CSV to Excel: custom sheet names and separators supported
  • JSON to Excel: field names auto-scanned into headers, nested data flattened

Three Destinations for Markdown Tables

When documentation tables need to reach a database or program processing:

Three Destinations for HTML Tables

Structuring data extracted from web pages:

Boundaries: Delimiters, Headers, Empty Cells, Merges

Choosing a delimiter

ConsumerTypical delimiterNotes
North America / most ETL,RFC 4180 default
European Excel locales;When decimal comma is in use
Paste from ExcelTabEffectively TSV

HTML / Markdown → CSV tool pages expose all three; fields that contain the delimiter are quoted automatically.

Headers and empty cells

  • With header (default): row one becomes JSON keys; blank header cells fall back to ColumnN so you never get empty-string keys.
  • Without header: every row is data, keyed as Column1, Column2… — useful for scraped numeric matrices.
  • Empty cells: default "" matches common CSV→object mappings; when APIs distinguish missing from empty string, enable “empty cells as null”.

Merged cells (colspan / rowspan)

Web tables often span “Contact” across two columns or merge a category label vertically. Flatten before export:

  1. Expand colspan by repeating the value across horizontal spans;
  2. Expand rowspan by filling the value downward;
  3. Export the completed matrix as CSV / JSON / Markdown.

ToolVault’s HTML table converters perform this forward-fill. Nested <table> rows are skipped at the outer structure; inner markup text stays inside its host cell — split pathological layouts first.

Hands-On Example: One Excel File, Three Destinations

Take a user dataset (columns: name, email, signup date):

  1. Backend test-database import: export via Excel to CSV; psql's \copy or MySQL's LOAD DATA INFILE consumes it directly
  2. Frontend mock data: use Excel to JSON and paste the array into your mock file
  3. Weekly report doc: use Excel to Markdown and paste into Notion or Confluence to render a table

No local spreadsheet software needed — drag the file into the browser, click copy, done.

Common Pitfalls Checklist

  • Unescaped quotes: hand-built CSV with delimiter-containing fields shifts columns; always use standard escaping
  • Wrong delimiter: parsing a semicolon file as comma collapses the whole row into one column — confirm locale or preview column counts
  • Garbled Chinese characters: CSV opening as mojibake in Excel usually means a missing BOM — exported versions from these tools already handle it
  • Number precision loss: long numbers (order IDs) become scientific notation in Excel; set the source column to text before converting
  • Merged cells: without expansion, columns misalign; after expansion, repeated values are expected
  • Empty-cell semantics: if the API wants null, do not leave "" behind
  • Date formats: Excel stores dates as serial numbers internally; confirm the tool exports displayed values

Summary

Table conversion bridges human-readable and machine-readable formats. Once you know the path and align on delimiters, headers, empties, and merges, what used to take half an hour takes minutes. The tools above are free, require no registration, and process data entirely in your browser — a safer choice than uploading to third-party servers.

Triage notes

The conversion paths radiate from Excel (four export directions plus the reverse generation) because everyday moves start from the product manager's spreadsheet and end at the JSON the API wants. Nearly all seven items on the pitfalls checklist are 'the convention was never aligned' problems: quote escaping follows RFC 4180, semicolon delimiters come from European regional settings, garbled CSV on open is a missing BOM, and whether an empty cell is "" or null must be agreed in advance. The empty-value item deliberately separates 'missing' from 'empty string' — leave "" where the API expects null, and a validator reads it as 'the field is present but empty'.