How to Convert Excel or CSV to JSON (Excel Has No Export Button)

Published 24 November 2026 · 6 min read

If you went looking for File, Save As, JSON in Excel, you will not find it. Excel reads many formats but does not write JSON. The reliable route is to save the sheet as CSV and convert that, as long as you protect the cells that Excel likes to change.

The steps

  1. Tidy the sheet. Put a single header row at the top, with one short name per column. The header names become the JSON keys. Remove merged cells, blank rows and totals.
  2. Save as CSV. Choose File, Save As, then the type CSV UTF-8 (Comma delimited). Plain CSV uses an old Windows encoding and can break accents and non-Latin text.
  3. Convert it. Open the CSV to JSON converter, add the file and copy or download the result. It runs in your browser, so the file is not uploaded.

Protect IDs, zip codes and phone numbers

The damage usually happens before the CSV is even saved. If a zip code such as 02134 was typed into a General cell, Excel already turned it into 2134. Format those columns as Text before typing or pasting, then save. Long numbers over 15 digits lose their trailing digits the same way. The full explanation is in why Excel changes long numbers.

Numbers, text and blanks

  • A CSV has no types, so the converter decides whether 42 is a number or text. Keep codes as strings and real quantities as numbers.
  • A blank cell can become an empty string or null. Pick the one your application expects.
  • Dates are saved as the text Excel displays, and the display format depends on your regional settings. Use 2026-11-24 style dates for JSON, which cannot be misread.
  • TRUE and FALSE become the text TRUE and FALSE unless the converter turns them into booleans.

Semicolons in European settings

In many countries Excel uses semicolons as the CSV separator because the comma is the decimal mark. If your result is one long key, set the delimiter to semicolon. See CSV garbled or in one column.

Flat in, flat out

A sheet is a flat table, so the JSON is an array of flat objects. To build nested JSON you need a column naming scheme such as address.city and a converter that can unflatten it, or you edit the structure afterwards.

If you need to do it often

Excel can automate this with VBA or Office Scripts, and Power Query can read JSON but cannot write it. For a repeating job, a short script is usually easier to maintain; the guide to JSON and CSV in Python shows the pattern. To go the other direction, see importing JSON into Excel.