Convert HTML to CSV
Turn HTML files into CSV files. Each table element becomes one CSV file, named after its caption or Table 1, Table 2 and so on, with its header rows first, including tables a page uses only for layout.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop HTML files on the dialor turn it to pick what to do
Every table on the page, as CSV.Each table element becomes its own CSV file, with header rows first.
What you get
One CSV file for each table element in the HTML. A file is named after the table's caption. If a table has no caption, it is named Table 1, Table 2 and so on.
Each file starts with the table's header rows. Links and formatting keep only their text.
What changes or is left out
Text outside tables is left out. Headings, paragraphs and lists that sit around the tables do not appear in any file.
Tables a page uses only for layout are converted too, so a page built with layout tables can give you files you did not expect.
A cell that spans several rows or columns keeps its text in its first cell, and the cells it covers are left empty. A table inside a cell becomes text in that cell.
Pages without tables
A page with no tables has nothing to turn into rows, so the conversion stops with
unsupported_elements.To go the other way, use CSV to HTML. To combine the files you get here, try merge CSV.
HTML and CSV.What each format is.
The formats
HTML
The markup of web pages. Text, links and structure, usually with CSS and images alongside.
- Extensions
- .html .htm
- MIME type
- text
/html - Kind
- Text and data
CSV
Rows of comma-separated values. The plainest way to move a table between programs.
- Extensions
- .csv
- MIME type
- text
/csv - Kind
- Text and data
In your code.The same HTML to CSV conversion through the API, for your app or your agent.
$ cv convert report.html report/ --to csv$ cv convert report.html report/ --to csvQuestions.What people ask about HTML to CSV.
No. Text outside tables is left out. Only table elements produce files.
A file is named after its table's caption. A table without a caption is named Table 1, Table 2 and so on.
The text stays in the first cell of the merged area. The other cells it covers are left empty.
The page has no tables. The conversion stops with unsupported_elements when there is no table to convert.