HTML to CSV Converter
Convert the tables in an HTML document to CSV, or another delimited format, one row per table row.
Input
Output
Settings
How the input is converted. Each is explained below.
Tags
History
HTML is the language of the internet. It is what creates HTML pages (even this one). In the old days, HTML used to be static with some JavaScript added into the mix for dynamic behavior and effects. Then HTML was served dynamically from the server side with the advent of server side programming languages such as PERL, PHP, ASP. And now there is a new trend where HTML is again being served as static resources with JSON (from REST web services) and JavaScript making it dynamic.
CSV is an old & very popular format for storing tabular data. It has been used in the desktop as well as mainframe. It is a simple & compact format that works really well for tabular data and so is still in use today.
Settings explained
- Delimiter
- What separates the fields and the column names in a record: comma, tab, semi-colon, pipe or space.
name|department John Doe|Engineering Jane Doe|Billing
- Value new line conversion
- How line breaks inside a value are written: kept as they are, or replaced by a space, a comma, a comma and a space, a semi-colon, or a semi-colon and a space.Comma and space
Line 1, Line 2, Line 3
- Write header
- Whether the first record holds the column names, from the table's header row.
- Trim inside words
- Several spaces in a row inside a value become one.
- Convert all tables
- On, every table in the document is converted - useful when the page holds more than one. Off, only the first table is.