I was looking for an online CSV file convertor, and found a very handy one. It converts CSV to HTML, PHP, mySQL, XML, JSON, Python, Ruby files. Maybe others find it useful too.
http://www.shancarter.com/data_converter/
The best is, its MIT license . So you can use it in your Modules and in whatever.