LocalExcelTool
Get started

Excel to JSON

Convert a worksheet to JSON — an array of objects keyed by the first row, or raw row arrays. No upload.

Runs in your browserNo account neededFree

What is Excel to JSON

Excel to JSON conversion treats the first row as column names and every following row as one record. An array of objects ([{ "name": "..." }]) drops straight into an API or a frontend; an array of arrays ([[...]]) preserves order and duplicates. If the header row contains blanks or duplicates, the output automatically falls back to row arrays so no column is silently lost.

File

No file chosen

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

The shape of the output

Each worksheet becomes a key in a single JSON object, and each sheet is an array of row objects keyed by the header row. That structure keeps multi-sheet workbooks intact — the thing CSV cannot do — and maps directly onto what an API or a database import expects.

Empty cells are omitted rather than written as null, so a sparse sheet produces compact objects instead of a wall of nulls. If your consumer needs every key present, fill the blanks in Excel first; deciding «missing» versus «null» is a data-modelling decision the converter should not make for you.

Numbers stay numbers, booleans stored as TRUE/FALSE stay booleans, and everything else is a string. Dates are the exception: they are written as the ISO date string when the cell is a real date, and as the original text when the cell was text all along.

Duplicate headers and other ways JSON breaks

Two columns with the same header collapse into one key, and the last one wins. That is a property of JSON objects, not a bug, but it silently loses a column. Rename duplicates in Excel before converting.

Headers containing spaces or punctuation produce keys that are awkward to use in code. They are kept verbatim rather than silently snake_cased, because renaming a field behind the user's back is worse than an ugly key — you can always transform the JSON afterwards.

An empty header cell becomes an empty key. Fill headers before converting; a row of unnamed columns produces objects that are impossible to reference. Two columns with the same header collapse into one key, and the second silently overwrites the first.

How to use it

  1. 1.Choose your Excel file
  2. 2.Pick the worksheet and output shape
  3. 3.Run it, then copy the JSON

How Excel to JSON works under the hood

An .xlsx file is not a table — it is a ZIP archive of XML parts. Everything you see as a grid is rebuilt from cell references on this page, in memory, without a round trip to a server.

  1. 1

    Read the file as bytes

    The file is read into an ArrayBuffer with the File API. This is a local read, not a request — nothing leaves the tab.

  2. 2

    Unzip and parse the workbook

    SheetJS inflates the archive, reads workbook.xml for sheet order, sharedStrings.xml for text, and each sheet's XML for cells and types.

  3. 3

    Rebuild rows in memory

    Cells are placed by their A1 reference, gaps become empty cells, and the sheet is materialised as a two-dimensional array.

  4. 4

    Write the output locally

    The result is serialised to CSV text or a new workbook and handed to the browser as a Blob download.

  5. Processing pipeline

Why formulas arrive as values

A spreadsheet stores two things per formula cell: the formula text, and the value Excel last computed and cached. A browser parser reads the cached value. Making the formula itself run would mean reimplementing Excel's calculation engine — including volatile functions, circular-reference detection and locale-specific parsing. So the exported CSV contains what you last saw on screen, not a live formula.

What has no CSV equivalent

Merged cells, cell fills, fonts, conditional formatting, comments and pivot tables have no representation in a comma-separated file. A merged cell becomes its value in the top-left position and empty cells elsewhere. Dates are written as dates only when the cell is typed as a date; a date stored as text stays text. These are format limits, not bugs.

Where it gets slow

Parsing is linear in cell count, and the browser holds the whole workbook in memory. A 30 MB file with a million populated cells can take several seconds and a few hundred MB of RAM; the tab may feel frozen while SheetJS works. Splitting the file by sheet, or exporting only the range you need, is faster than retrying with a bigger limit.

Verify it yourself

You do not have to take this on faith. Run the tool once with DevTools open.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

Objects or arrays — which should I pick?

Objects use the first row as keys: readable and ready for an API payload. Arrays keep the raw grid with no keys. If the header has blanks or duplicate names the converter switches to arrays automatically, because duplicate keys would drop columns.

Are cell types preserved?

Numbers stay numbers and text stays text in the JSON. Dates may surface as Excel serial numbers, so convert them in your application if you need ISO dates.

Does it handle large sheets?

Up to 30 MB. A few thousand rows are fine; hundreds of thousands will hit browser memory and clipboard limits, in which case convert to CSV instead.

What this kind of conversion cannot keep

Spreadsheet conversion is lossy by nature: a workbook carries formulas, styles, merged cells and multiple sheets, while CSV carries rows of text. This tool keeps values and order, recalculates nothing, and drops presentation on purpose. That is why it can run without a server — and why a converted file will not look like the original.

More in Spreadsheets & Docs