[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Converting HTML table in CSV

Posted on 2006-05-02
Medium Priority
Last Modified: 2008-02-01

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.
Question by:eirikur
  • 2
LVL 26

Expert Comment

ID: 16585993
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:


LVL 26

Accepted Solution

EddieShipman earned 250 total points
ID: 16586002
BTW, My last comment was not meant to say that javascript was a *real* programming language.

Expert Comment

ID: 16587075
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.
LVL 75

Expert Comment

by:Michel Plungjan
ID: 16594229
I load the page into firefox, select all, paste the page into my favorite editor (textpad.com) 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 ;


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question