Press "Enter" to skip to content

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">
  ...
</table>

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

<button onclick="table2csv(this,1)" 
        data-table="example">
        Download The Table
</button>

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

table2csv-Demo


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.

Be First to Comment

    Leave a Reply

    Your email address will not be published.