Developers live in JSON; most colleagues live in Excel. Sooner or later someone asks for “that API data in a spreadsheet”, or sends a workbook that needs to become JSON for an app. This guide shows how to convert in both directions without losing data, and covers the related jobs of turning data into HTML and Markdown tables.
JSON to Excel
A spreadsheet is a grid, so the JSON must be an array of records — objects with similar keys. Each object becomes a row and each key becomes a column. JSON to Excel builds a real .xlsx workbook in your browser:
- Nested objects are flattened into dotted columns:
address.city,address.pin. - Several arrays in one document become several sheets, one per array, so a response with
customersandordersbecomes a two-sheet workbook. - Numbers stay numbers and booleans stay booleans, so Excel can sum and filter them.
Before converting, find the right array. API responses usually wrap records in an envelope such as { "data": { "items": [ … ] } }; the records are what you want in the sheet, not the envelope.
Arrays inside records
Lists inside a record — tags, line items, phone numbers — do not fit one cell. You have three choices:
- Keep the list as JSON text in one cell. Simple, but awkward to filter.
- Join simple lists into a string:
admin, beta. - Move the list to its own sheet with one row per item and a column linking back to the parent ID. This is the right choice for line items, because it lets people total and pivot them.
Excel to JSON
Excel to JSON reads a workbook in the browser and turns each sheet into an array of objects, using the first row as keys. Things to check:
- Header row. Remove title rows and merged headers above the real column names, and make every column name unique.
- Dates. Excel stores dates as serial numbers (45658 is 1 January 2025). The converter turns date-formatted cells into ISO date strings; dates typed as text stay as text.
- Formulas. The values saved with the workbook are used, not the formulas. If the file was generated by a program and never opened in Excel, some formula results may be missing.
- Empty cells become
null, so your code must handle missing values. - Old .xls files use a different format; save them as .xlsx first.
CSV or Excel?
CSV is simpler and more portable: any tool can read it, and it suits automated pipelines. Excel is better for people: several sheets, real number and date types, and no delimiter or encoding confusion when opened. If a non-technical colleague will open the file, send .xlsx; if a program will read it, send CSV. JSON to CSV and CSV to JSON cover the CSV route; the JSON vs CSV guide explains the trade-offs.
Tables for the web and for documentation
- JSON to HTML Table generates escaped
<table>markup to paste into a web page or email, or a complete styled page you can open and print. - CSV to Markdown Table produces aligned Markdown tables for README files, GitHub issues and wikis; Markdown Table to CSV extracts a table back out.
- CSV to TSV and TSV to CSV switch delimiters. Tab-separated text is what you get when you copy cells from Excel or Google Sheets, which makes TSV a handy bridge between spreadsheets and other tools.
Keep confidential data local
Spreadsheets often hold salaries, customer lists and financial figures. Many online converters upload the file to their server. SnipFerry builds and reads .xlsx files entirely in your browser using its own ZIP and SpreadsheetML code, so the data never leaves your device.