Convert XLS to JSON
Turn XLS workbooks into JSON files. One JSON file per worksheet, hidden ones included: an array with one object per row, keyed by the sheet's first row.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop XLS files on the dialor turn it to pick what to do
One JSON file for each sheet of your workbook.Each row becomes an object, keyed by the names in the sheet's first row.
What you get
One JSON file per worksheet, hidden sheets included. Each file holds an array with one object per row, and the keys come from the first row of the sheet.
Numbers are typed as numbers. Dates are written as YYYY-MM-DD. Booleans stay the text TRUE or FALSE.
How cells are read
A formula gives its last computed value, not the formula itself. A merged cell keeps its text in its first cell.
A sheet with only one row becomes an empty array, because the first row is used for the keys and no data rows follow it.
Some files named .xls are really web pages. These give one sheet per table, named as the page names its sheet. A file saved as XML Spreadsheet 2003 gives each worksheet with its values.
Choosing one sheet
Every worksheet is converted when you leave out the Sheet option. Set Sheet to a name or to a number counting from 1 to convert only that worksheet.
XLS and JSON.What each format is, and the options this conversion takes.
- 01 · sheet
Sheet
The one worksheet to convert, by its name or by its number counting from 1. Every worksheet is converted when it is left out.
The formats
Excel 97-2003 Workbook
The binary Excel workbook format from Excel 97 through 2003, and its templates (.xlt). WPS Spreadsheets saves the same format as .et and .ett.
- Extensions
- .xls .xlt .et .ett
- MIME type
- application
/vnd .ms -excel - Kind
- Documents
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
In your code.The same XLS to JSON conversion through the API, for your app or your agent.
$ cv convert sheet.xls sheet/ --to json$ cv convert sheet.xls sheet/ --to jsonQuestions.What people ask about XLS to JSON.
Yes. Hidden worksheets are converted along with the others, unless you set Sheet to a different one.
No. Formulas give their last computed values.
The sheet has only one row. That row gives the keys, so there are no rows left to turn into objects.
Yes. WPS Spreadsheets saves the same format as .et and .ett, and both are accepted along with .xls and .xlt. For more on the output side, see every JSON conversion.