JSON to Excel
Convert JSON or JSONL into formatted .xlsx workbooks with typed columns and multiple sheets.
Install
irm https://raw.githubusercontent.com/chayprabs/localtools/main/json-to-excel/install.ps1 | iexlocaltools-json-to-excel updatelocaltools-json-to-excel uninstall
curl -fsSL https://raw.githubusercontent.com/chayprabs/localtools/main/json-to-excel/install.sh | bashlocaltools-json-to-excel updatelocaltools-json-to-excel uninstall
brew install chayprabs/localtools/localtools-json-to-excelbrew upgrade localtools-json-to-excelbrew uninstall localtools-json-to-excel
scoop bucket add localtools https://github.com/chayprabs/homebrew-localtools; scoop install localtools-json-to-excelscoop update localtools-json-to-excelscoop uninstall localtools-json-to-excel
winget install localtools.JsonToExcelwinget upgrade localtools.JsonToExcelwinget uninstall localtools.JsonToExcel
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
| Platform | File | Size |
|---|---|---|
| Linux ARM64 | json-to-excel-1.0.6-linux-arm64.zip | 4.4 MB |
| Linux x64 | json-to-excel-1.0.6-linux-x64.zip | 4.9 MB |
| macOS Apple Silicon | json-to-excel-1.0.6-macos-arm64.zip | 4.6 MB |
| macOS Intel | json-to-excel-1.0.6-macos-x64.zip | 4.9 MB |
| Windows x64 | json-to-excel-1.0.6-windows-x64.zip | 5.0 MB |
SHA-256 checksums are in the release notes; the install scripts verify them for you.
See it
How to use
- Run localtools-json-to-excel (or open JSON to Excel from your app menu); it opens in your browser.
- Paste JSON or drop a .json / .jsonl file. Arrays, JSON Lines and objects of arrays (one sheet per key) are detected automatically.
- Optionally set the sheet name or switch off the frozen header, then press Convert.
- Check the preview of the first rows and press Download .xlsx.
- 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.