JSONGenerator
GeneratorSchemaConvertersExamplesDocs

JSONGenerator

Free online tools for generating random JSON data and JSON Schemas.

Quick Links

  • JSON Generator
  • JSON Schema Converter
  • Examples
  • Docs
  • Blog
  • About
  • Contact
  • Privacy Policy

Converters

  • JSON to YAML
  • YAML to JSON
  • XML to JSON
  • JSON to XML
  • JSON to TOML
  • TOML to JSON
  • JSON to CSV
  • CSV to JSON
  • JSON to Excel
  • Excel to JSON
  • JSON to HTML table
  • JSON to TypeScript
  • JSON to C#
  • JSON to Go
  • JSON to Java
  • JSON to SQL

Support

Having issues? Contact us.

© 2026 JSON Generator. All rights reserved.

Excel to JSON Converter

Paste cells from Excel or upload an .xlsx file and get a JSON array of objects.

Swap directionSwap direction

Excel Data

Paste cells from Excel or Google Sheets, or upload or drop an .xlsx, .xls, .ods or .csv file. Workbooks with several sheets get a Sheet picker.

1
2
3
4
id	name	plan	monthly_price	active	zip	joined	notes
1	Ada Lovelace	pro	29.5	TRUE	02134	2024-01-15	
2	Linus Torvalds	free	0	FALSE	90210	2024-02-03	"Likes ""fast"" builds, mostly"
3	Grace Hopper	pro	29.5	TRUE	10001	2024-03-21	

JSON Output

Updates as you type. Copy it or download a .json file.

1

Converting…

Convert Excel to JSON online

This free Excel to JSON converter turns a spreadsheet into a JSON array of objects. Upload an .xlsx, .xls, .ods or .csv file, or just copy a range of cells in Excel and paste it into the editor. The first row becomes the property names, every following row becomes an object, and the result updates as you type.

The file is read in your browser, so the workbook is never uploaded anywhere. That matters when the sheet holds customer lists, prices or anything else you would rather not send to a server. There is nothing to install and no sign-up.

How to convert an Excel file to JSON

  1. Click the upload button and choose your file, or drag an .xlsx, .xls, .ods or .csv file onto the Excel Data editor. Prefer to paste? Select cells in Excel or Google Sheets, copy them, and paste them in.
  2. An uploaded file appears in the editor as tab-separated text, the same as pasted cells. If the workbook has several sheets, choose the one you want from the Sheet picker. If the first row is not a header, untick First row is header to get an array of arrays.
  3. Leave Convert numbers and booleans ticked for typed JSON, or untick it to keep every value as a string.
  4. Click Copy to take the JSON, or Download to save it as data.json. If something is wrong with the input, the status bar says what.

Excel to JSON example

These cells were copied from a small product sheet. Numbers and TRUE/FALSE values are typed, the SKU codes keep their leading zeros, and the empty cells in the last row become null.

Pasted cells (tab-separated)
id	name	price	in_stock	sku	added
1	Desk lamp	24.9	TRUE	00417	2024-05-06
2	USB hub	19	FALSE	00502	2024-05-09
3	Notebook		TRUE	00618	
JSON output
[
  {
    "id": 1,
    "name": "Desk lamp",
    "price": 24.9,
    "in_stock": true,
    "sku": "00417",
    "added": "2024-05-06"
  },
  {
    "id": 2,
    "name": "USB hub",
    "price": 19,
    "in_stock": false,
    "sku": "00502",
    "added": "2024-05-09"
  },
  {
    "id": 3,
    "name": "Notebook",
    "price": null,
    "in_stock": true,
    "sku": "00618",
    "added": null
  }
]

How Excel cells map to JSON

Excel cell types and the JSON the converter produces
Excel cellJSONNotes
TextstringQuotes, commas and line breaks inside a cell are kept.
NumbernumberUploaded files give the stored value: a cell showing 25% becomes 0.25.
TRUE / FALSEtrue / falseNeeds Convert numbers and booleans.
Date or timeISO 8601 string2024-01-15, 2024-01-15T13:30:00 or 18:00:00.
Empty cellnullEvery column is kept, so all objects have the same keys.
Formulaits saved resultThe value Excel last calculated, not the formula text.
Error such as #N/AstringWritten as the text "#N/A".
Merged cellstop-left cell onlyThe other cells in the merged range are empty.

Dates from Excel

Excel stores a date as a serial number, the count of days since 1900, so a naive Excel to JSON conversion gives you values like 45306. When you upload a file, this converter checks each cell's number format and writes date cells as ISO 8601 text instead. Cells with a time get a T and the time, and time-only cells become 18:00:00. A plain number in a General-format cell is left alone.

Pasted cells are different: Excel puts the text it displays on the clipboard, so a pasted date is whatever the sheet shows, such as 1/15/2024. Upload the file if you need ISO dates.

Workbooks with several sheets

When you upload a workbook with more than one sheet, the converter opens the first sheet that contains data and a Sheet picker appears above the editors. It lists every sheet with data in workbook order and leaves empty sheets out. Choosing a sheet loads its cells into the editor and converts them, so you can check each sheet's JSON in turn without uploading the file again. Each sheet is converted on its own; to get several sheets into one JSON document, convert them one at a time and combine the results.

Zip codes, phone numbers and big numbers

A value such as 02134 or 0049170 would lose its leading zero as a JSON number, so it stays a string. The same goes for integers beyond 253 and decimals with more digits than a JavaScript number can hold. Values like 1,234 or $5 are not numbers either, so they stay text. Untick Convert numbers and booleans if you want strings everywhere. Note that a cell Excel stores as text, such as 123, is converted to a number while that option is on.

Headers, duplicates and no header row

Header names are trimmed. An empty header becomes column_2 (using its column position), and a repeated header gets a suffix, so id, id becomes id and id_2. A trailing column with no header and no values is dropped.

Why convert XLSX to JSON?

  • Seed data and fixtures: Keep test data in a spreadsheet that non-developers can edit, then export it to JSON for your tests or database seeds.
  • Front-end and API mock data: Turn a product or price list into a JSON file a prototype or mock API can serve.
  • Imports and migrations: Convert a spreadsheet export to JSON before loading it into MongoDB, Firestore or an import endpoint.
  • Configuration and content: Translations, feature lists and lookup tables are easier to maintain in a sheet than in raw JSON.

Working the other way? The JSON to Excel converter builds an .xlsx file from a JSON array. If your data is already a CSV, try the CSV to JSON converter, and use JSON to CSV for the reverse. Once you have the JSON, the JSON Schema Generator can describe its structure, the JSON Generator makes more sample records, and our guide to seeding test databases in CI/CD shows where such data ends up.

Frequently Asked Questions

How do I convert Excel to JSON?

Upload an .xlsx, .xls or .ods file, or copy cells in Excel and paste them into the Excel Data editor. The JSON appears as you type. Copy it, or click Download to save data.json.

What happens to workbooks with several sheets?

The converter opens the first sheet that contains data and shows a Sheet picker listing every sheet with data. Choose another sheet to convert it instead; empty sheets are left out of the list.

How are dates converted?

When you upload a file, cells formatted as dates become ISO 8601 text such as 2024-01-15 or 2024-01-15T13:30:00 instead of Excel serial numbers like 45306. Cells you paste arrive as the text Excel displays, so a pasted date keeps whatever format the sheet shows.

Why does my zip code or phone number stay a string?

With Convert numbers and booleans on, a value with a leading zero such as "02134" is kept as a string, because turning it into a number would drop the zero. Integers larger than 2^53 are also kept as strings, since a JSON number in JavaScript cannot hold them exactly.

Can I copy and paste from Excel or Google Sheets?

Yes. Cells copied from Excel, Google Sheets, Numbers and LibreOffice Calc arrive as tab-separated text, which the converter reads directly. Include the header row and leave First row is header ticked.

Is my spreadsheet uploaded to a server?

No. The file is read and converted in your browser with JavaScript, so the contents never leave your device. That makes it safe for spreadsheets with customer or financial data.

Can I convert JSON back to Excel?

Yes. Use the JSON to Excel converter, or click Swap direction above the editors, to turn a JSON array into an .xlsx file you can open in Excel.

Related converters

  • JSON to Excel ConverterConvert JSON to an Excel .xlsx spreadsheet you can open in Excel, Numbers or Google Sheets.
  • JSON to CSV ConverterConvert a JSON array to CSV, with nested objects flattened into columns.
  • CSV to JSON ConverterConvert CSV with a header row to a JSON array of objects, with numbers and booleans typed.
  • JSON to HTML Table ConverterConvert a JSON array to an HTML table you can paste into a page or email.
  • JSON to YAML ConverterConvert JSON to clean, readable YAML for config files, Kubernetes and CI pipelines.
  • YAML to JSON ConverterConvert YAML, including anchors and multi-document files, to formatted JSON.

See all JSON converters