Easy Table To CSV Converter - jQuery table2csv

File Size: 3.73 KB
Views Total: 5126
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
Easy Table To CSV Converter - jQuery table2csv

Just another jQuery based table to csv converter & exporter that allows the user to download table records as a CSV file. Fast, lightweight and dead simple to use.

See also:

How to use it:

1. Import the latest version of jQuery library and table2csv.js into the html.

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" 
<script src="table2csv.js"></script>

2. Your HTML table must have thead and tbody elements:

<table class="table">

3. Export the HTML table to a CSV file.


4. Customize the file name. Default: table_records.csv.

  file_name: 'jqueryscript.csv'

5. Specify the space (the number of rows) between header and body. Default: 1.

  file_name: 'jqueryscript.csv',
  header_body_space: 0

This awesome jQuery plugin is developed by venkataramanab. For more Advanced Usages, please check the demo page or visit the official website.