HTML Table to CSV — Free Online Tool

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.

Loading HTML Table to CSV

How to use HTML Table to CSV

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.

Frequently asked questions

How does it handle commas inside cells?

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.

What is the JSON output format?

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.

Does it support colspan and rowspan?

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.

More HTML Tools

Newline to BR Converter
Convert plain-text line breaks into HTML <br> tags (nl2br), with an optional XHTML self-closing mode and a reverse br-to-newline mode
Text/SVG to Data URI
Encode text, SVG or CSS into a base64 or URL-encoded data URI you can embed inline in HTML or CSS with no external file
Meta Tag Generator
Generate complete SEO meta tags including title, description, Open Graph, and Twitter Cards
Open Graph Generator
Generate Open Graph and Twitter Card meta tags for social media sharing optimization
HTML Table Generator
Generate semantic HTML tables from rows and columns input with customizable styling
HTML List Generator
Generate ordered or unordered HTML lists from text input with proper markup structure

← View all HTML Tools