html table to csv file It requires jQuery It is simple plugin that exports html table to csv file Download and add csvExport.js file to your project. Initialize the csvExport as $('#xmlTable').csvExport(); Initialize with params $('#xmlTable').csvExport({ fileName : 'csv exported file.csv' });