Skip to content

Excel to JSON Converter

Turn a sheet into a JSON array of objects. Row 1 supplies the keys, every other row becomes one object, and the workbook stays on your device.

Updated

Choose a .xlsx file or drop it here.xlsx .xls .xlsm .csv · up to 50 MB · opened on your device, not uploaded

How to convert Excel to JSON

  1. Select Choose a .xlsx file, or drop the workbook onto the box. The converter also reads .xls, .xlsm and .csv files.
  2. If the workbook has several sheets, select one under Sheet to convert.
  3. Check the preview. Row 1 must contain the column names, because they become the keys.
  4. Select Download JSON (.json).

With several sheets in the workbook, the sheet name is added to the file name, for example orders-March.json. For a .csv input there is also a Keep every value as text tick box, which writes every value as a quoted string.

From rows to objects

A sheet like this:

Order ID Date Customer Units Unit price
10231 2026-03-02 Northwind Traders 12 24
10232 2026-03-02 Blue Harbor Co 4 48.9

becomes:

[
  {
    "Order ID": 10231,
    "Date": "2026-03-02",
    "Customer": "Northwind Traders",
    "Units": 12,
    "Unit price": 24
  },
  {
    "Order ID": 10232,
    "Date": "2026-03-02",
    "Customer": "Blue Harbor Co",
    "Units": 4,
    "Unit price": 48.9
  }
]

How cell types are written

In the sheet In the JSON
Text A string in double quotes
Number, currency, percentage A number. The stored value is used, so 25% is written as 0.25
Date A string such as "2026-03-02"
TRUE / FALSE true / false
Formula Its last calculated result
Empty cell ""
Blank header cell A key named column_3, using the column’s position
Two headers with the same text The second becomes Name_2

Keys keep the exact header text, including spaces and capital letters. If your code expects orderId and the sheet says Order ID, rename the header in the workbook before converting.

Prepare the sheet first

JSON output is only as tidy as the table it comes from. A few checks save rework:

  • Headers in row 1. Title rows, logos and notes above the table push the real headers down. Delete them, or the title becomes a key.
  • One header row. Two-level headers with merged cells do not map to keys.
  • No totals row. A row of sums at the bottom becomes an object like any other.
  • No empty rows. Each one turns into an object of empty strings. Remove blank rows clears them.
  • No repeated records. Remove duplicates takes out rows that appear twice.
  • IDs as text. A code such as 00501 stored as a number is exported as 501. Format the column as Text in Excel and re-enter the values, so that they are stored as text.

Excel has no “Save as JSON”

The Save As list in Excel covers CSV, text, XML and PDF, and stops short of JSON. People work around this in three ways:

  • Office Scripts. In Excel for the web and Microsoft 365, the Automate tab runs TypeScript that can read a table and return JSON, often as part of a Power Automate flow.
  • VBA. A macro can loop over the rows and write the text file. Escaping quotes and special characters correctly is the hard part.
  • A formula. For a handful of rows you can build each object with TEXTJOIN and string concatenation, then copy the result out.

Google Sheets is in the same position. It downloads .xlsx, .csv and .tsv, and JSON needs Apps Script.

A converter is the shorter path when you need the file once, or when the person exporting it does not write code.

Using the JSON

The output is standard JSON in UTF-8, so every language reads it without extra options. In JavaScript, JSON.parse returns an array you can loop over. In Python, json.load returns a list of dictionaries. The array form is also what most bulk-import API endpoints and document databases accept.

Things that go wrong

  • Keys are values from the first data row. The sheet has no header row. Add one and convert again.
  • Keys such as column_1. Row 1 has empty cells above columns that contain data.
  • Numbers have many decimals, such as 0.30000000000000004. That is the value stored in the workbook, which Excel rounds on screen. Wrap the source formula in ROUND if the extra digits matter.
  • Long IDs are altered. Excel stores 15 significant digits. Digits lost in the workbook cannot be recovered in the JSON.
  • The wrong sheet was converted. The first sheet is selected to begin with. Hidden sheets appear in the list as well.

Limits

  • Files up to 50 MB.
  • One sheet per file, exported as a flat array of objects. Values only, with no formatting, formulas or comments.
  • The preview shows the first 200 rows and 40 columns. The JSON includes every row.
  • Encrypted workbooks cannot be read.

To go the other way, use JSON to Excel. If the destination wants a text table, use Excel to CSV.

Questions

How do I convert Excel to JSON?

Choose the workbook above, pick a sheet if there is more than one, and select Download JSON (.json). The file is an array with one object per row, keyed by the text in row 1.

What does the JSON look like?

An array of objects, indented with two spaces. A sheet with the headers Product and Units gives [{"Product": "Desk lamp", "Units": 12}, ...]. Numbers are written without quotes and text with quotes.

Can Excel save a workbook as JSON?

No. Excel has no JSON option under Save As. You can write an Office Script or a VBA macro to do it, or convert the file here.

What happens to empty cells?

The key is still written, with an empty string as its value. Every object therefore has the same set of keys, which makes the file predictable for code that reads it.

How are dates written?

As text in year-month-day form, such as "2026-03-02", with the time added when the cell has one. JSON has no date type, so this is the form most programs expect.

Does it create nested JSON?

No. Each row becomes a flat object. A header such as stock.units stays a single key with that name and is not turned into a nested object.

Related