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. [Back to Examples](/jspreadsheet/v3/examples "Back to the examples section") # 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. ```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. ```html
``` ## Based on an JSON object The data directive 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
``` **NOTE** : This example is based on a customized version of the free version of SheetsJS. There is no guarantee in the use of this library. Please consider purchase their professional version.