Convert pasted HTML table markup into CSV and JSON. Parses rows and cells, auto-escaping commas, quotes and newlines. HTML Table to CSV is a free online tool from the ToolsRift HTML Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.
Paste your HTML table markup (including the <table> tag) into the input box, then click Convert. Copy the generated CSV or JSON array-of-objects. The first row is used as column headers for the JSON output.
Cells containing a comma, double-quote, or line break are automatically wrapped in double quotes, and any inner double-quotes are escaped by doubling them (" becomes ""), following the standard CSV/RFC 4180 rules.
The JSON is an array of objects. The first table row is treated as the header, so each following row becomes an object keyed by those header names. Empty headers fall back to column1, column2, etc.
The parser walks each <tr> and reads every <th>/<td> in order, so merged cells using colspan or rowspan are not expanded to fill the spanned positions. Each cell maps to a single CSV/JSON field.