Export Html Table To Excel Spreadsheet using jQuery - table2excel

Export Html Table To Excel Spreadsheet using jQuery - table2excel
File Size: 49.9 KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT

table2excel is a simple yet useful jQuery plugin which allows for exporting Html table data to an Excel file.

Alternative plugins:

See also:

How to use it:

1. Include jQuery library and the jQuery table2excel plugin in the Html document.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="src/jquery.table2excel.js"></script>

2. Create an 'Export' button to export table data to an Excel file manually. Optional.


3. Call the plugin on the table and done.

    // exclude CSS class
    exclude: ".noExl",
    name: "Worksheet Name",
    filename: "SomeFile" //do not include extension

4. You can add the CSS class 'noExl' to any tr tags to ignore the specified table data while exporting.

<tr class="noExl">
  <th>Column heading</th>
  <th>Column heading</th>
  <th>Column heading</th>



  • v1.1.2: Update jquery.table2excel.js


  • v1.1.1: Update jquery.table2excel.js


  • Support unicode and file extension feature.


  • Update jquery.table2excel.js


  • Added IE11 support


  • Changes made to move toward supporting multiple tables to single Excel file.

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