1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert Excel to JSON

Copy a range in Excel and paste it into the Quick paste box, or press Import file with an .xlsx file. The first row supplies the keys and every later row becomes one object in the JSON on the right.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Spreadsheet

SheetsExcelCSVTSV
✦ Quick pasteSheets / Excel, CSV, TSV, Markdown, JSON, HTML, LaTeX, wiki…
0 rows · 0 columnsSelected cell: A1
02

Live Output

Markdowntwo-way
SyncedEdit directly; the table on the left updates itself
0 characters
Every change is processed right in your browserReady · LocalUTF-8 · by xuanhieu.org

When you need to convert Excel to JSON

You turn Excel into JSON when spreadsheet data has to reach an API, a website or an app. The tricky part is value types: Excel may show 1,450 while JSON wants 1450, IDs with leading zeros must not become numbers, and empty cells need a clear result. The tool takes the value displayed in each cell, so format cells properly before you copy. Only the first sheet of a file is imported.

How to do it

  1. Select the range in Excel including the header row, copy it, paste into the Quick paste box and press Load into table ↵. Or use Import file with an .xlsx file.
  2. Check the grid: the first row must hold column names because they become the JSON keys.
  3. Open ⚙ Options on the JSON tab, pick Output shape and turn on Output numbers as numbers if the receiver needs real numbers.
  4. Press Copy result to paste into code, or Download file to get a .json file.

A real example

Stock became a real number, while Price stays a string such as "145.00" because only canonical numbers convert and 145.00 has a trailing zero. The cell Keyboard | mechanical contains a pipe, which is harmless in JSON.

Input · Cells in Excel

SKUProductPriceStock
KB-01Keyboard | mechanical145.0021
MS-04Wireless mouse29.9047
MN-2424-inch monitor325.008

Result · JSON

[
  {
    "SKU": "KB-01",
    "Product": "Keyboard | mechanical",
    "Price": "145.00",
    "Stock": 21
  },
  {
    "SKU": "MS-04",
    "Product": "Wireless mouse",
    "Price": "29.90",
    "Stock": 47
  },
  {
    "SKU": "MN-24",
    "Product": "24-inch monitor",
    "Price": "325.00",
    "Stock": 8
  }
]

Options worth changing

Output shape
An array of objects uses the column headers as keys, which is usually what an API wants. Object keyed by first column uses the first column (SKU here) as the key and suits quick lookups by code.
Output numbers as numbers
Turn it on so 1450 becomes a number. Cells like 1,450 or 145.00 are not canonical numbers and stay strings, and IDs with leading zeros always stay strings.
Root object name
Type products to get {"products": [...]}, which suits an API that will not take a bare array.
Minify (single line)
Turn it on for a compact file when embedding in a URL or an environment variable.

Common problems

Limits

Frequently asked questions

What if my workbook has several sheets?

Only the first sheet is imported with Import file. To use another sheet, copy its range and paste it into Quick paste.

Why is my price still a string?

The tool takes the displayed value, and only canonical numbers such as 1450 or 3.5 convert. Remove the thousands format or trailing zeros in Excel and copy again.

Can I get nested JSON from Excel?

No. Each row becomes a flat object with the column headers as keys.

How are date cells exported?

As displayed in the cell, such as 05/11/2026, and as a string. The tool does not convert them to ISO format.

Do I have to upload the file?

No. The file is read in your browser and never leaves your machine.

Related conversions

1xA2Z · Guide

Table statistics