CSV vs TSV vs JSON vs XLSX: How to preserve your data

Follow one set of records through CSV, TSV, JSON and Excel to see what happens to IDs, large integers, formulas and empty values.

Decide which meaning the next file must keep

Choose a format for the receiving app
Your taskChooseWhat to check
Send flat rows to another appCSVUse a comma-delimited import. Set ID or precise numeric fields to text before opening in a spreadsheet.
Use a tab-delimited workflowTSVConfirm that the receiver understands quoted TSV if a field contains a tab, quote or line break.
Keep nested values, types and missing keysJSONKeep the original JSON. Check that the receiver supports the precision you need for numbers.
Open and read fields in a spreadsheetXLSXFormatHopper’s new workbooks store text cells. Existing workbook styles, date formatting and formulas need the original workbook.

Follow a record through CSV, TSV and back to JSON

Download the original checkout records and run JSON to CSV. The input includes a ticket with leading zeros, a large number, a nested list, and a note that looks like a formula.

JSON input
[
  {
    "ticket": "00123",
    "room": "Studio, East",
    "counter": 9007199254740997,
    "gear": {"slots": [2, 4]},
    "note": "=2+3",
    "checked": "",
    "due": "2026-11-23"
  },
  {"ticket": "00456", "checked": null}
]
Actual CSV output
ticket,room,counter,gear,note,checked,due
00123,"Studio, East",9007199254740997,"{""slots"":[2,4]}",'=2+3,"",2026-11-23
00456,"","","","","",""

CSV separates fields with commas. The quotes around “Studio, East” keep it in one field. The nested object becomes a text cell, with its internal quotes doubled for CSV. The digits of 9007199254740997 are intact in the file. A spreadsheet can still round them or drop leading zeros if it decides those columns are numeric.

Run CSV to TSV on the CSV output. In the TSV output, tabs separate fields. A comma inside “Studio, East” no longer needs surrounding quotes. The inner quotes in the object still do. The code sample contains actual tabs.

Actual TSV output with literal tabs
ticket	room	counter	gear	note	checked	due
00123	Studio, East	9007199254740997	"{""slots"":[2,4]}"	'=2+3	""	2026-11-23
00456	""	""	""	""	""	""

Using TSV to CSV on this sample reproduced the first CSV byte for byte, including CRLF record endings. Using CSV to JSON on that CSV produced a different kind of JSON. The counter came back as the string "9007199254740997", the nested object came back as a string, and the empty string, null and missing values became empty strings. That loss happened during the first conversion to CSV.

Choose literal cells when values look like formulas or dates

FormatHopper adds a literal apostrophe before formula-like values in delimited exports. In this CSV and TSV the note is '=2+3, and that apostrophe remains in the JSON round trip. Different spreadsheet import settings can treat text differently. Check the receiving app and preserve the source when exact text matters.

Run JSON to XLSX on the same source instead. The test workbook stores 00123, 9007199254740997, =2+3 and 2026-11-23 as literal text. The note has no apostrophe and the cell contains no formula. With XLSX to JSON, choose the Data worksheet. Those fields return as strings. The date is still the text you supplied.

When reading an existing XLSX, FormatHopper exports the stored value or a saved formula result. It does not recalculate formulas. A formula without a cached value becomes empty and produces a warning. Dates stored as styled numbers can appear as serial numbers, and a numeric cell displayed as “00123” can appear as “123”. Keep the workbook to retain formulas and display formatting.