A Lightweight JS Library to Convert HTML Table to CSV File | table2csv

Table2csv plugin is a javascript library that used when needed to export the table to a downloadable CSV file analyze and output the table data in CSV format.

How to make use of it:

1. Insert the table2csv.min.js file into the HTML web page.

<script src="table2csv.min.js"></script>

2. Assign a unique ID to your HTML table.

<table id="example">

3. Create a converter button and decide the selector of the goal HTML table utilizing the data-table attribute:

<button onclick="table2csv(this,1)" 
        Download The Table

Import Data From HTML to Excel, Table to CSV Converter, table2csv Plugin/Github


See Demo And Download

Official Website(YunisDEV): Click Here

This superior jQuery/javascript plugin is developed by YunisDEV. For extra Advanced Usages, please go to the official website.

Leave a Comment