Home/Other Tools/Excel/CSV ↔ JSON

Excel/CSV ↔ JSON

Convert spreadsheets to JSON and back.

Loading Excel/CSV ↔ JSON… If it does not appear, turn on JavaScript or update your browser (Chrome, Edge, Firefox or Safari).

Highlights

  • Rows become JSON objects
  • JSON back to Excel or CSV
  • Keeps Unicode text
  • Runs in your browser

About Excel/CSV ↔ JSON

Turn an Excel or CSV file into JSON (each row becomes an object keyed by the header), or turn a JSON file into a spreadsheet. Handy for developers and for moving data between apps.

Developers and students often need data in JSON for an app or a website, while the data starts in Excel. Excel/CSV to JSON turns each row into an object and each header into a key, and it can convert JSON back into a spreadsheet. It runs in your browser, so your data is never uploaded.

This is handy for students and developers who need sample data for an app, and for anyone who wants to move records between systems. Keys come from your header row, so clear header names make clear JSON. Unicode text such as Hindi stays as it is.

How to convert a spreadsheet to JSON

  1. Open the tool and add your Excel or CSV file, or a JSON file.
  2. Choose the direction of the conversion.
  3. Convert the file.
  4. Download the JSON or the spreadsheet.

Preparing your sheet

  • Put the header names in row 1 and keep them unique.
  • Avoid merged cells, as they do not map neatly to JSON objects.
  • Check that numbers and text are stored as you expect before converting.

Limits, formats and privacy

Each row becomes one object, keyed by the header. For the reverse direction, the JSON should be a list of similar objects, otherwise the columns may not line up the way you expect.

Unicode text is kept intact. Your files are processed inside your browser and are never uploaded to a server.

When to use it

  • App and website data. Create a JSON list of products, stations or schools from a sheet.
  • Class projects. Prepare sample data for a programming assignment.
  • Moving data between apps. Convert back to a sheet with Excel to CSV when needed.

For large files, give the browser a moment to finish. Once you have the JSON, open it in any text editor to check that the keys and values look right before you use it in your project.

It is a good first step in a small project. Convert your sheet, paste the JSON into your code, and you have working sample data in a minute.

Tip: if you plan to convert the JSON back to a spreadsheet later, keep the keys in each object the same, so the columns come out neatly.

Frequently asked questions

How do I convert Excel to JSON?

Open the tool, add your Excel or CSV file and convert. Each row becomes a JSON object, with the header names as keys.

Can I convert JSON to Excel?

Yes. Add a JSON file and convert it to a spreadsheet, as Excel or CSV.

Will Hindi or other Unicode text be kept?

Yes. Unicode text is kept as it is.

What should my header row look like?

Use short, unique header names in the first row, since they become the JSON keys.

Is my data uploaded?

No. Conversion runs in your browser and your data stays on your device.