title: Load data from CSV or JSON or XLSX keywords: Jexcel, javascript, excel-like, spreadsheet, loading data, csv, json, xlsx. description: How to import data from an external CSV, json file or XLSX. # Create a javascript spreadsheet There are a few different ways to load data to your javascript spreadsheet shown in the next four examples below ## Based on a external CSV file The example below helps you to create a javascript spreadsheet table based on a remote CSV file, including the headers. ### Source code ```html
``` ## Based on an external JSON file In a similar way, you can create a table based on an external JSON file format by using the _url: directive_ as below. ### Source code ```html ``` ## Based on an JSON object The data directiva can be used to define a JSON object. In this case you can define by the name directive the order of the columns. ### Source code ```html ``` ## Importing from a XLSX file The following example imports the data from a XLSX file using a thirdy party library, slighly customized in order to improve the CSS parser. IMPORTANT: This is an experimental implementation and there is no garantee your spreadsheet will be correctly parsed. ### Source code ```html ``` **NOTE** : This example is based on a customized version of the free version of [Sheetjs](https://sheetjs.com/). There is no garantee in the use of this library. Please consider purchase their professional version.