New to Kendo UI for jQuery? Download free 30-day trial

Convert an XLSX File to JSON without Using a Spreadsheet Widget


Product Progress Kendo UI Spreadsheet


How can I convert an XLSX file to JSON without initializing a Spreadsheet widget?


Use a kendo.spreadsheet.Workbook object.

  1. Click to load an .xlsx file
  <input type="file" name="files" id="fileForUpload" accept=".xlsx" />
  2. Click to print the file JSON on the console
  <input type="button" value="Click tо read file" id="btn" />

  $('#btn').on('click', function() {
    var file = document.getElementById("fileForUpload").files[0];

    if (file) {
      var workbook = new kendo.spreadsheet.Workbook({});

        var jsonContent = workbook.toJSON();

See Also

In this article
Not finding the help you need? Improve this article