Convert XLSX to JSON

Turn XLSX 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 XLSX files on the dialor turn it to pick what to do

One JSON file for each worksheet.Each row becomes an object, keyed by the first row of the sheet.

  1. What you get

    One JSON file per worksheet, and hidden worksheets are included. Each file holds an array with one object per row. The keys come from the sheet's first row.

    Formulas give their last computed values. Numbers are typed as numbers, and dates are written as YYYY-MM-DD.

  2. What changes

    Booleans stay the text TRUE or FALSE, so they are not JSON true and false values.

    A sheet with only one row becomes an empty array. That row supplies the keys, so no row is left to write as an object.

  3. Choosing one sheet

    Set Sheet to convert one worksheet. Give its name, or its number counting from 1. When Sheet is left out, every worksheet is converted.

  4. When it stops

    A file that cannot be parsed stops the conversion with input_corrupted.

XLSX and JSON.What each format is, and the options this conversion takes.

  1. 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

From · XLSX

Excel Workbook

Excel's workbook format since 2007. Sheets, formulas, formats and charts in zipped XML.

Extensions
.xlsx
MIME type
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Kind
Documents
To · JSON

JSON

JSON, the data format of every API.

Extensions
.json
MIME type
application/json
Kind
Text and data

In your code.The same XLSX to JSON conversion through the API, for your app or your agent.

terminal
$ cv convert sheet.xlsx sheet/ --to json
$ cv convert sheet.xlsx sheet/ --to json

Questions.What people ask about XLSX to JSON.

01OF 04

Yes. Each worksheet gets its own JSON file, hidden ones included. Set Sheet to convert only one.

The keys come from the first row of the sheet. Each later row becomes one object with those keys.

No. Each formula gives its last computed value.

The sheet has only one row. That row gives the keys, so there are no objects to write.

More conversions.Other ways in and out of XLSX and JSON.