Converting HTML table in CSV


I'm searching for an easy and quick way to convert a HTML file containing a table with i.e. data written like this (i shortened the code a little ;)  to a CSV file:


<td>Title 1</td>
<td>Amount 1</td>

<td>Title 2</td>
<td>Amount 2</td>



Thank you for helping.
Who is Participating?
Eddie ShipmanConnect With a Mentor All-around developerCommented:
BTW, My last comment was not meant to say that javascript was a *real* programming language.
Eddie ShipmanAll-around developerCommented:
Well, you are not going to be able to do it with just HTML code, you are going to
have to use a real programming language to do it. Take a look at the javascript
code here:

If you don't need a programmatic way of doing this, you can just select all the text in the table as it's rendered in the browser and paste it into Excel.  Then save as a CSV file.
Michel PlungjanIT ExpertCommented:
I load the page into firefox, select all, paste the page into my favorite editor ( and change all \t to ; with the regexp checkbox checked.
Save as csv and voila. If your excel can use tab-delimited csv, you can skip the change \t to ;

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.