local/tools
data / Native app / v1.0.6

JSON to Excel

Convert JSON or JSONL into formatted .xlsx workbooks with typed columns and multiple sheets.

Install

  • install
    irm https://raw.githubusercontent.com/chayprabs/localtools/main/json-to-excel/install.ps1 | iex
  • update
    localtools-json-to-excel update
  • remove
    localtools-json-to-excel uninstall

Opens at http://127.0.0.1:47108 in your browser. Run localtools-json-to-excel --help for the command line. Set LOCALTOOLS_NO_OPEN=1 to install without opening it.

Direct download

PlatformFileSize
Linux ARM64json-to-excel-1.0.6-linux-arm64.zip4.4 MB
Linux x64json-to-excel-1.0.6-linux-x64.zip4.9 MB
macOS Apple Siliconjson-to-excel-1.0.6-macos-arm64.zip4.6 MB
macOS Inteljson-to-excel-1.0.6-macos-x64.zip4.9 MB
Windows x64json-to-excel-1.0.6-windows-x64.zip5.0 MB

SHA-256 checksums are in the release notes; the install scripts verify them for you.

See it

How to use

  1. Run localtools-json-to-excel (or open JSON to Excel from your app menu); it opens in your browser.
  2. Paste JSON or drop a .json / .jsonl file. Arrays, JSON Lines and objects of arrays (one sheet per key) are detected automatically.
  3. Optionally set the sheet name or switch off the frozen header, then press Convert.
  4. Check the preview of the first rows and press Download .xlsx.
  5. For scripts: localtools-json-to-excel convert in.json -o out.xlsx, or pipe JSON through stdin.

FAQ

Are dates and numbers real Excel values or text?

Real values. JSON numbers and booleans become Excel numbers and booleans, and ISO dates (2024-03-01) and datetimes (2024-03-01T14:30:00Z) become Excel dates with a date format, so sorting, filters and formulas work. Integers longer than 15 digits stay text so Excel does not round them.

What happens to nested objects and arrays?

Nested objects are flattened into dotted columns such as customer.address.city. Arrays of plain values go into one cell as a comma-separated list; arrays of objects are kept as compact JSON in one cell.

How big a file can it handle?

Up to Excel's limit of 1,048,575 data rows per sheet. 100,000 rows convert in a few seconds, and nothing is uploaded: the conversion runs on your machine.

Can I control formats, formulas and charts?

Yes, with spec mode: send {"sheets": [...]} with typed columns, number formats, styles, merged cells, formulas, conditional formatting, Excel tables, charts and images. The format is documented in SPEC.md, linked from the README and the UI.

Can a value like =SUM(A1:A9) in my data run as a formula?

No. In data mode every string is written as text, so values starting with = cannot become formulas. Formulas only come from spec mode, where you declare them explicitly.