OnlineTextLab
Esc

XLSX to JSON Converter

Turn a spreadsheet into JSON records with real types, using the first row for keys.

Drop your Excel file here

Or paste it with Ctrl V

or drop it here

Accepts .xlsx and .xlsm. Numbers stay numbers, dates become ISO text, and blanks become null.

Runs on your device. Your files and text are not uploaded.

About Excel to JSON

Plenty of real data lives in spreadsheets: product lists, translation tables, fixtures, config that a colleague maintains. When a program needs it, JSON is what you want, and most converters turn everything into strings or lose the difference between a real number and a code that looks like one.

This uses what Excel recorded about each cell. A number cell becomes a JSON number, a text cell stays a string even if it says 00123, and a true/false cell becomes a boolean. You pick the sheet or take the whole workbook at once, check the source table, and copy or download the array.

How it works

The first non-empty row supplies the keys, and each row after it becomes one object. Blank keys become column_3 and so on, and repeated titles get a suffix (Order, Order_2), so two columns can never silently overwrite each other, which is a common way to lose data in this kind of conversion. Completely empty rows are dropped.

Types come from the cell, not from guessing at the text. That is the important difference: guessing turns the ZIP code 02139 into the number 2139 and a part number like 1E5 into 100000. Dates are recognized through their number format and written as ISO text, since JSON has no date type. Formula cells contribute the result Excel last saved, error cells such as #N/A come through as strings, and blanks are null. Choosing All sheets returns an object with one array per sheet, keyed by sheet name.

How to use Excel to JSON

  1. Choose a workbook with Select an Excel file, or drop it on the page.
  2. Under Sheet, choose a sheet or All sheets. The sheet option only appears when there is more than one.
  3. Open Conversion options to stop using the first row as keys, or to make every value a string.
  4. Press Download .json, or Copy to paste it into your code.

One row of the sample workbook

Input
Order | Date | Quantity | Unit price | Total
A-100 | 2026-05-04 | 3 | 12.5 | =C2*D2
Output
[
  {
    "Order": "A-100",
    "Date": "2026-05-04",
    "Quantity": 3,
    "Unit price": 12.5,
    "Total": 37.5
  }
]

Quantity and Unit price are JSON numbers, Total is the saved formula result, and the date is ISO text.

When it helps

  • Seeding a database or test suite from a sheet that a non-developer maintains
  • Loading a translation table or product catalog into a web app
  • Passing spreadsheet data to an API that takes JSON
  • Exporting a whole workbook of lookup tables as one config file

Tips for a better result

  • Keep the headers short and consistent, because they become your keys. unit_price is easier to use in code than Unit Price (USD).
  • If a column of IDs comes out as numbers and you want strings, format that column as Text in Excel and retype or re-import the values, or turn off Keep cell types.
  • To reformat or validate the result, paste it in the JSON Formatter.

Good to know

  • Sheets must be simple tables, with one header row and rows below. A title banner above the header becomes the keys, and merged header cells leave gaps.
  • Nested objects are not built from dotted column names. address.city remains a flat key.
  • Number formats are not applied, so 50% comes through as 0.5, and precision is limited to Excel's 15 significant digits.
  • Formulas are not recalculated, and those with no saved result become null.
  • Older .xls files and encrypted workbooks are not supported.

Questions people ask

How are empty cells represented?

As null, with the key still present, so every object has the same shape. With Keep cell types turned off, empties become empty strings instead.

What happens if two columns have the same heading?

The second gets a suffix, such as Name_2, so no data is lost. You will probably want to rename the header in the sheet for cleaner keys.

How are dates written?

As ISO 8601 text: 2026-05-04, or 2026-05-04 12:00:00 when there is a time. A cell with only a time gives 18:00:00.

Does it handle hidden sheets?

Yes. They appear in the sheet list marked as hidden, and they are included in All sheets. Remove them in Excel first if they should not be shared.

What to use next

Learn more

Last reviewed . Read our editorial policy.